Re: How to use class_prepared signal

2008-10-16 Thread Malcolm Tredinnick
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

How to use class_prepared signal

2008-10-16 Thread Thomas Guettler
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