Skip to content
Snippets Groups Projects
Commit 846b327d authored by sandeepsajan0's avatar sandeepsajan0
Browse files

Use obj as mandatory argument for has_add_permission method for TabularInline

parent df0a71c4
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ class MessageInline(admin.TabularInline): ...@@ -8,7 +8,7 @@ class MessageInline(admin.TabularInline):
readonly_fields = ('type', 'recipient', 'content', 'status', 'external_id') readonly_fields = ('type', 'recipient', 'content', 'status', 'external_id')
can_delete = False can_delete = False
def has_add_permission(self, request): def has_add_permission(self, request, obj):
return False return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment