Définir un lieu ne change pas la date de modification de l'événement
This commit is contained in:
parent
54e3af00cd
commit
f3664007f7
@ -512,7 +512,7 @@ class EventAddPlaceForm(Form):
|
||||
if self.cleaned_data.get("place"):
|
||||
place = self.cleaned_data.get("place")
|
||||
self.instance.exact_location = place
|
||||
self.instance.save()
|
||||
self.instance.save(update_fields=["exact_location"])
|
||||
if self.cleaned_data.get("add_alias"):
|
||||
if place.aliases:
|
||||
place.aliases.append(self.instance.location.strip())
|
||||
|
@ -2190,7 +2190,7 @@ class PlaceFromEventCreateView(PlaceCreateView):
|
||||
def form_valid(self, form):
|
||||
result = super().form_valid(form)
|
||||
self.event.exact_location = form.instance
|
||||
self.event.save()
|
||||
self.event.save(update_fields=["exact_location"])
|
||||
return result
|
||||
|
||||
def get_success_url(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user