Vyhledávání v osobách

This commit is contained in:
Jonas Havelka 2021-12-13 23:46:53 +01:00
parent c4e9a5d617
commit 3a6518c92a

View file

@ -7,6 +7,7 @@ import seminar.models as m
@admin.register(m.Osoba)
class OsobaAdmin(admin.ModelAdmin):
actions = ['synchronizuj_maily', 'udelej_orgem']
search_fields = ['jmeno', 'prijmeni', 'prezdivka']
def synchronizuj_maily(self, request, queryset):
for o in queryset: