Commit graph

13 commits

Author SHA1 Message Date
Jannis Leidel
b1356e8761 Back to tuple style syntax for permission required decorator. 2009-07-06 21:57:16 +02:00
Jannis Leidel
9b4b9bf096 Try to fix the permission system after breaking it. 2009-07-06 19:08:44 +02:00
Jannis Leidel
8f85db2438 Remove erroneous check for an existing obj in generic permission check. 2009-07-06 13:57:45 +02:00
Jannis Leidel
37a4ae24fb Cache permission choices for each model class. 2009-07-06 11:10:08 +02:00
Jannis Leidel
0b369d9310 Renamed verbose_name attribute of permission checks to short_description for consistency 2009-07-04 11:06:01 +02:00
Jannis Leidel
9dd3affcc1 Made PermissionInline a bit more pleasant with ForeignKeyRawIdWidget and automatic choices for permission field 2009-07-03 18:04:22 +02:00
Jannis Leidel
f8cb902476 Take Django's default permissions into account again 2009-07-03 15:45:34 +02:00
Jannis Leidel
0f14d735a3 Fixed permission check handling, abstracted some bits and removed special "admin" permission check. 2009-07-03 15:38:45 +02:00
Jannis Leidel
8e285686a5 Refined permission system to have three types of permission checks: default (add, browse, change and delete), custom (like defaul checks) and complex (method based). 2009-06-22 01:05:31 +02:00
Jannis Leidel
0ffda098d5 Got rid of unneeded importlib.import_module import, err. 2009-06-12 01:25:39 +02:00
Jannis Leidel
dfa487e44d Moved a bunch of methods to the model manager, which now resides in its own file. Promoted permission registry to a class to put some utility functions to it, including a function to compile a choice list for a given permission label. Updated __unicode__ of Permission model. Added new default permission check 'can_browse'. Added support for verbose names of permission checks. Updated forms to work with all changes. Moved codename field to base form class. 2009-06-12 01:11:06 +02:00
Jannis Leidel
4e91ac30e7 Fixed fallback to Django's permission system 2009-06-08 13:18:54 +02:00
Jannis Leidel
d0ebca03a2 added authority app 2009-06-08 12:00:44 +02:00