FieldError: 'last_scan_moment' cannot be specified for EndpointGenericScan model form as it is a non-editable...
https://sentry.io/internet-cleanup-foundation/faalkaart/issues/403004367/
FieldError: 'last_scan_moment' cannot be specified for EndpointGenericScan model form as it is a non-editable field
File "django/contrib/admin/options.py", line 647, in get_form
return modelform_factory(self.model, **defaults)
File "django/forms/models.py", line 563, in modelform_factory
return type(form)(class_name, (form,), form_class_attrs)
File "django/forms/models.py", line 266, in __new__
apply_limit_choices_to=False,
File "django/forms/models.py", line 159, in fields_for_model
f.name, model.__name__)
FieldError: 'last_scan_moment' cannot be specified for EndpointGenericScan model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class EndpointGenericScanAdmin.
(10 additional frame(s) were not displayed)
...
File "django/utils/decorators.py", line 149, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "django/utils/decorators.py", line 63, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "django/contrib/admin/options.py", line 1408, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "django/contrib/admin/options.py", line 1437, in _changeform_view
ModelForm = self.get_form(request, obj)
File "django/contrib/admin/options.py", line 651, in get_form
% (e, self.__class__.__name__)
FieldError: 'last_scan_moment' cannot be specified for EndpointGenericScan model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class EndpointGenericScanAdmin.