We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ea9750 commit b770654Copy full SHA for b770654
catalog/admin.py
@@ -17,7 +17,6 @@
17
from catalog.models import TreeItem
18
from catalog.utils import get_catalog_models
19
from catalog.grid import GridRow
20
-from catalog.settings import CATALOG_BLOCK_ADD_PERMISSION
21
22
23
class LazyEncoder(DjangoJSONEncoder):
@@ -56,10 +55,7 @@ def has_add_permission(self, request):
56
55
"""
57
Block add permission
58
59
- if CATALOG_BLOCK_ADD_PERMISSION:
60
- return False
61
- else:
62
- return super(self, CatalogAdmin).has_add_permission(request)
+ return False
63
64
def get_display_fields(self, models):
65
catalog/settings.py
0 commit comments