Skip to content

Commit b770654

Browse files
author
konstantin.gabbasov
committed
remove block add conf
1 parent 6ea9750 commit b770654

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

catalog/admin.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from catalog.models import TreeItem
1818
from catalog.utils import get_catalog_models
1919
from catalog.grid import GridRow
20-
from catalog.settings import CATALOG_BLOCK_ADD_PERMISSION
2120

2221

2322
class LazyEncoder(DjangoJSONEncoder):
@@ -56,10 +55,7 @@ def has_add_permission(self, request):
5655
"""
5756
Block add permission
5857
"""
59-
if CATALOG_BLOCK_ADD_PERMISSION:
60-
return False
61-
else:
62-
return super(self, CatalogAdmin).has_add_permission(request)
58+
return False
6359

6460
def get_display_fields(self, models):
6561
"""

catalog/settings.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)