Débug username change à chaque modifications

This commit is contained in:
Ambulance Clerc
2022-05-02 14:54:14 +02:00
parent 5bd350aece
commit 2c9b041178

View File

@@ -107,7 +107,8 @@ class Collabs_hour_Admin(admin.ModelAdmin):
def save_model(self, request, obj, form, change):
obj.userName = request.user.username
if obj.userName == "":
obj.userName = request.user.username
super().save_model(request, obj, form, change)