from django.contrib import admin
from .models import Card, FaqQuestion, Banner, Rule

admin.site.register(Card)
admin.site.register(FaqQuestion)
admin.site.register(Rule)
admin.site.register(Banner)

@@ -35,55 +35,1019 @@
 rom 
-.models import Card, FaqQuestion, Banner, Rule%0A
+django.contrib.admin import EmptyFieldListFilter%0Afrom django.contrib.auth.admin import UserAdmin%0Afrom django.contrib.auth.models import User%0A%0Afrom .models import Card, FaqQuestion, Banner, Rule%0A%0A%0Aclass WatchlistFilter(EmptyFieldListFilter):%0A    def __init__(self, field, request, params, model, model_admin, field_path):%0A        super().__init__(field, request, params, model, model_admin, field_path)%0A        self.title = %22vaktliste%22%0A%0A    def choices(self, changelist):%0A        for lookup, title in (%0A            (None, 'Alle'),%0A            ('1', 'P%C3%A5 vaktliste'),%0A            ('0', 'Ikke p%C3%A5 vaktliste'),%0A        ):%0A            yield %7B%0A                'selected': self.lookup_val == lookup,%0A                'query_string': changelist.get_query_string(%7Bself.lookup_kwarg: lookup%7D),%0A                'display': title,%0A            %7D%0A%0A%0Aclass CustomUserAdmin(UserAdmin):%0A    list_filter = UserAdmin.list_filter + ((%22watches%22, WatchlistFilter),)%0A%0A%0Aadmin.site.unregister(User)%0Aadmin.site.register(User, CustomUserAdmin)
 %0Aadm

Add filter for users on watchlist