I have an abstract base class for defining common attributes shared by different user profiles.
class Profile(models.Model):
...
def has_permissions(self, project):
...
class Meta:
abstract = True
class Standard(Profile):
...
class Premium(Profile):
...
Now I would like to check the permission of a certain user (having always one distinct profile assigned) without having to know which profile he has, like
user.profile.has_permission(project)
But this does not work because the "Profile" base class is abstract. Is there a way to circumvent this problem? And is there a way to discover the name of the abstract parent class from a child object?
Thanks, Daniel