This commit is contained in:
iriska-gri committed 2023-11-02 16:54:44 +03:00
1 parent 8a9a19f136
commit cf662895e5
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):
+2 -2
View File
@@ -98,7 +98,7 @@ class DailyRoundUpAPIView(APIView):
ws['I1'] = 'На '+ date.today().strftime("%d.%m.%Y")
print(date.today().strftime("%d.%m.%Y"))
numb = 1
column_widths = [29, 53, 96, 96, 112, 28, 222, 29, 148, 28, 145, 33]
@@ -293,7 +293,7 @@ class DailyloadAPIView(APIView):
df = pd.merge(df_user, df_daily, left_on= 'login', right_on="login")
result={}
print(dailyr, '33333333333333333333333333333333333333333333333')
pos=dailyr[0][1]
if request.GET.__contains__('id'):