  
  class DjangoObjectLevelModelPermissions(DjangoModelPermissions):
      def __init__(self):
          assert guardian, 'Using DjangoObjectLevelModelPermissions, but django-guardian is not installed'
  
      action_perm_map = {
 
</s> remove class BasicPermModel(BasicModel):
 </s> add class BasicPermModel(models.Model):
    text = models.CharField(max_length=100) </s> remove     model = BasicModel
 </s> add     model = BasicPermModel </s> remove             ('read_basicpermmodel', "Can view basic perm model"),
 </s> add             ('read_basicpermmodel', 'Can view basic perm model'), </s> remove             # assign permissions appropriately
            from guardian.shortcuts import assign_perm
 </s> add             # appropriate object level permissions
            readers = Group.objects.create(name='readers')
            writers = Group.objects.create(name='writers')
            deleters = Group.objects.create(name='deleters')
    """
    Basic object level permissions utilizing django-guardian.
    """

  
  class DjangoObjectLevelModelPermissions(DjangoModelPermissions):
    """
    Basic object level permissions utilizing django-guardian.
    """

      def __init__(self):
          assert guardian, 'Using DjangoObjectLevelModelPermissions, but django-guardian is not installed'
  
      action_perm_map = {
keep add keep keep keep keep
 first pass at object level permissions and tests 
rest_framework/permissions.py