Skip to content

Commit

Permalink
some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Mohsen committed Jun 26, 2020
1 parent aa1b49d commit f9750b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions django_restful_admin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_permission_map(self):
'list': self._make_permission_key('view'),
'retrieve': self._make_permission_key('view'),
'create': self._make_permission_key('add'),
'update': self._make_permission_key('update'),
'update': self._make_permission_key('change'),
'delete': self._make_permission_key('delete'),
}
permission_map.update(self.permission_map)
Expand All @@ -57,7 +57,6 @@ def _has_perm_action(self, action, request, obj=None):
return self.NOT_FOUND_PERMISSION_DEFAULT

perm_code = perm_map[action]
print(perm_code)
if callable(perm_code):
return perm_code(self, action, request, obj)
if isinstance(perm_code, bool):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='django-restful-admin',
version='1.1.0',
version='1.1.1',
description='Python Django RestFul Admin',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit f9750b1

Please sign in to comment.