Skip to content

Commit

Permalink
feat: PrintAttemptAdmin add filter by user
Browse files Browse the repository at this point in the history
  • Loading branch information
jadyndev committed Dec 17, 2024
1 parent bf494ae commit 84283bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/crowdprinter/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class PrintAttemptAdmin(admin.ModelAdmin):
)
list_filter = [
("finished", admin.BooleanFieldListFilter),
("dropped_off", admin.BooleanFieldListFilter)
("dropped_off", admin.BooleanFieldListFilter),
("user", admin.RelatedFieldListFilter)
]


Expand All @@ -78,4 +79,4 @@ def job_link(self, obj):

@admin.register(User)
class UserAdmin(UserAdmin):
fieldsets = UserAdmin.fieldsets + ((None, {"fields": ("max_attempts",)}),)
fieldsets = UserAdmin.fieldsets + (("Crowdprinter", {"fields": ("max_attempts","allow_messages_during_event_from_humans","allow_messages_after_event_from_humans")}),)

0 comments on commit 84283bf

Please sign in to comment.