Hi all,

I am using an abstract base class called "profile" for the extension of my user models. I implemented several profiles like "standard, premium, staff" and so on.

Now I realised that I would like to check the permission of a certain user on a certain project without having to know about his specific profile, like this

user.profile.has_permission(project)

but this of course does not work because "profile" is an abstract base class, so I can only check "user.premium.has_permission(project)" for example. This is pretty bad, because adding profiles would result in a change of every piece of code where I check for permissions.

The problem is, that simply removing "abstract = True" does not work, because the tables "account_premium" "account_standard" have conflicting primary keys.

Is there a way to circumvent this problem?

Thanks in advance,
Daniel

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to