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