On Thu, 2008-10-16 at 16:11 +0200, Thomas Guettler wrote:
> Hi,
>
> I try to use the class_prepared signal to register permissions on a
> model class.
>
> Example: MyModel has a View-Permission. To avoid typos I don't want
> to use the string representation of permissions
Hi,
I try to use the class_prepared signal to register permissions on a
model class.
Example: MyModel has a View-Permission. To avoid typos I don't want
to use the string representation of permissions ('myapp_view_mymodel').
I want to use a class attribute (MyModel.PERM_VIEW) in my code.
It
2 matches
Mail list logo