Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix admin interface parameters #536

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dashboard/internet_nl_dashboard/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class InternetNLV2StateLogInline(nested_admin.NestedTabularInline): # pylint: d

readonly_fields = ('state', 'state_message', 'last_state_check', 'at_when')

def has_add_permission(self):
def has_add_permission(self, *args, **kwargs):
return False


Expand All @@ -328,7 +328,7 @@ class AccountInternetNLScanLogInl(nested_admin.NestedTabularInline): # pylint:
readonly_fields = ('state', 'at_when')
# todo: restrict any form of editing and creating things here.

def has_add_permission(self):
def has_add_permission(self, *args, **kwargs):
return False


Expand All @@ -339,7 +339,7 @@ class AccountInternetNLScanInline(nested_admin.NestedTabularInline): # pylint:

readonly_fields = ('account', 'urllist', 'report', 'state', 'started_on', 'finished_on', 'state_changed_on')

def has_add_permission(self):
def has_add_permission(self, *args, **kwargs):
return False


Expand Down
Loading