request in model
I am new in Django.
I am looking for a solution for my problem.
I want to have a base model class
inheriting all other model classes from that class.
In the base model class I want to check
some permissions for users.
So, need pass request to model class so that
to have request.user.
Is it possible?
Sorry for the obscure explanation,
I just want to know whether it is possible to go this way.
--
Oh, by the way, which one's Pink?
-- Pink Floyd
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home