On supprime des formulaires les métadonnées non utilisateur

This commit is contained in:
Jean-Marie Favreau 2023-12-30 17:37:47 +01:00
parent bfbf2cf58d
commit bd5df0cfe2

View File

@ -13,7 +13,7 @@ class EventForm(ModelForm):
class Meta: class Meta:
model = Event model = Event
exclude = ["possibly_duplicated"] exclude = ["possibly_duplicated", "imported_date", "modified_date"]
widgets = { widgets = {
'start_day': TextInput(attrs={'type': 'date', 'onchange': 'update_datetimes(event);', "onfocus": "this.oldvalue = this.value;"}), 'start_day': TextInput(attrs={'type': 'date', 'onchange': 'update_datetimes(event);', "onfocus": "this.oldvalue = this.value;"}),
'start_time': TextInput(attrs={'type': 'time', 'onchange': 'update_datetimes(event);', "onfocus": "this.oldvalue = this.value;"}), 'start_time': TextInput(attrs={'type': 'time', 'onchange': 'update_datetimes(event);', "onfocus": "this.oldvalue = this.value;"}),