Use lowercase user_model
This commit is contained in:
parent
ce59f18e4b
commit
3c19075c92
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ class IndexView(LoginRequiredMixin, ListView):
|
|||
context = super().get_context_data(**kwargs)
|
||||
|
||||
# Get superusers
|
||||
User = get_user_model()
|
||||
superusers = User.objects.filter(is_superuser=True)
|
||||
user_model = get_user_model()
|
||||
superusers = user_model.objects.filter(is_superuser=True)
|
||||
context["superusers"] = superusers
|
||||
|
||||
return context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue