AssertionError when using the HTML form for CreateUser on an instance with registration disabled

Teklia Bot
2025-10-27T11:07:19Z

Sentry Issue: [ARKINDEX-BACKEND-2XM](https://teklia.sentry.io/issues/6947057495/?referrer=gitlab_integration) ``` AssertionError: 'UserCreate' should either include a `queryset` attribute, or override the `get_queryset()` method. (3 add...

Sentry Issue: ARKINDEX-BACKEND-2XM

AssertionError: 'UserCreate' should either include a `queryset` attribute, or override the `get_queryset()` method.
(3 additional frame(s) were not displayed)
...
  File "rest_framework/response.py", line 74, in rendered_content
    ret = renderer.render(self.data, accepted_media_type, context)
  File "rest_framework/renderers.py", line 727, in render
    context = self.get_context(data, accepted_media_type, renderer_context)
  File "rest_framework/renderers.py", line 705, in get_context
    'filter_form': self.get_filter_form(data, view, request),
  File "rest_framework/renderers.py", line 633, in get_filter_form
    queryset = view.get_queryset()
  File "rest_framework/generics.py", line 67, in get_queryset
    assert self.queryset is not None, (