Группировка по папкам

This commit is contained in:
iriska-gri committed 2023-09-27 08:56:00 +03:00
1 parent 17f35a0f5d
commit 7cba2e0366
880 files changed
+11 -146079

No files matched your search

-12
View File
@@ -1,12 +0,0 @@
from django.contrib import admin
from .models import *
class GeneralVacationAdmin(admin.ModelAdmin):
fields = ('user', 'planned_date', 'count_days', 'type_of_vacation', 'start_work_period', 'end_work_period')
list_display=('get_name', 'user', 'planned_date', 'count_days', 'type_of_vacation', 'start_work_period', 'end_work_period')
readonly_fields=('get_name',)
def get_name(self, obj):
print(obj.user.fio(), '----------------obj.user.fio()')
return obj.user.fio()
admin.site.register(GeneralVacation, GeneralVacationAdmin)