我有一些这样的Django-Tastypie代码:
class SpecializedResource(ModelResource):
class Meta:
authentication = MyCustomAuthentication()
class TestResource(SpecializedResource):
class Meta:
# the following style works:
authentication = SpecializedResource.authentication
# but the following style does not:
super(TestResource, meta).authentication
我想知道在不硬编码超类名称的情况下访问超类元属性的正确方法是什么。