Changes between Version 31 and Version 32 of RowLevelPermissions


Ignore:
Timestamp:
Aug 20, 2006, 5:19:18 PM (18 years ago)
Author:
Chris Long
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RowLevelPermissions

    v31 v32  
    140140Row level permissions can be edited in the administration interface, on the change form for each object with row level permissions enabled is a link beside History to edit row level permissions. To edit row level permissions, you must have the change RLP permission and change permission on the object. To add row level permissions, you must have the add RLP permisison and change permission on the object.
    141141
     142By default, all instances of a model are shown to a user when they access the change list for a model. To turn off this behaviour, you must set the ''show_all_rows'' admin option to false. Doing this will increase the number of database queries made to the server, which is why the default option is that all rows are shown. An example:
     143
     144{{{
     145#!python
     146...
     147class Mineral(models.Model):
     148...   
     149    class Admin:
     150        show_all_rows = False
     151   
     152    class Meta:
     153        row_level_permissions = True
     154...
     155}}}
     156
    142157=== Accessing Row Level Permissions from a Model ===
    143158
Back to Top