This commit is contained in:
iriska-gri committed 2023-11-02 16:54:44 +03:00
1 parent 139321f102
commit 88d785e657
12 files changed
+81 -175

No files matched your search

+1 -2
View File
@@ -6,8 +6,7 @@ class GeneralVacationAdmin(admin.ModelAdmin):
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()
class PlanCalendarAdmin(admin.ModelAdmin):