Newer
Older
exclude = ("creator",)
def save_model(self, request, obj, form, change):
obj.creator = request.user
obj.save()
# }}}
def revoke_exam_tickets(self, request, queryset): # noqa
queryset \
.filter(state=exam_ticket_states.valid) \
.update(state=exam_ticket_states.revoked)
Andreas Klöckner
committed
revoke_exam_tickets.short_description = _("Revoke Exam Tickets") # type: ignore
admin.site.register(ExamTicket, ExamTicketAdmin)
# }}}
# vim: foldmethod=marker