on ne donne pas à éditer moderated_date

This commit is contained in:
Jean-Marie Favreau 2024-04-21 17:04:48 +02:00
parent 0329e9f37b
commit 8e8ab04a04

View File

@ -42,7 +42,7 @@ class EventForm(ModelForm):
class Meta: class Meta:
model = Event model = Event
exclude = ["possibly_duplicated", "imported_date", "modified_date"] exclude = ["possibly_duplicated", "imported_date", "modified_date", "moderated_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;"}),