diff --git a/beat/web/backend/admin.py b/beat/web/backend/admin.py index fcfdcf9ecbcec123033643257b6fde19c591a0b8..d7dc6f54ab436f93967ee2209f973c1c15ad78ef 100755 --- a/beat/web/backend/admin.py +++ b/beat/web/backend/admin.py @@ -192,7 +192,7 @@ class JobSplitInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -210,7 +210,7 @@ class Job(admin.ModelAdmin): def splits(self, obj): return obj.splits.count() - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False diff --git a/beat/web/databases/admin.py b/beat/web/databases/admin.py index 5af35497aba64ae2ba0339ee12bbd030c10b212a..3e0558df256b2aea524b1238247ed53555af5906 100755 --- a/beat/web/databases/admin.py +++ b/beat/web/databases/admin.py @@ -229,7 +229,7 @@ class DatabaseSetTemplateOutputInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -245,7 +245,7 @@ class DatabaseSetTemplate(admin.ModelAdmin): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -265,7 +265,7 @@ class DatabaseSetOutputInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -286,7 +286,7 @@ class DatabaseSet(admin.ModelAdmin): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False diff --git a/beat/web/experiments/admin.py b/beat/web/experiments/admin.py index 6d453ef13bb732e0df20ff89e8a53f6699cc8c30..f770987794517d6c2285ed95b1dc555315b93e4b 100755 --- a/beat/web/experiments/admin.py +++ b/beat/web/experiments/admin.py @@ -133,7 +133,7 @@ class BlockInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -268,7 +268,7 @@ class BlockInputInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -291,7 +291,7 @@ class CachedFileInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -328,7 +328,7 @@ class BlockDependentsInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -365,7 +365,7 @@ class BlockDependenciesInline(admin.TabularInline): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -457,7 +457,7 @@ class Block(admin.ModelAdmin): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False form = BlockModelForm @@ -505,7 +505,7 @@ class Result(admin.ModelAdmin): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False @@ -640,7 +640,7 @@ class CachedFile(admin.ModelAdmin): def has_delete_permission(self, request, obj=None): return False - def has_add_permission(self, request): + def has_add_permission(self, request, obj=None): return False