Skip to content

Commit 15d2b45

Browse files
committed
update editing a product url to get/create
1 parent 49d020d commit 15d2b45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dojo/url/ui/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def clean_tags(self):
3232
return self.cleaned_data.get("tags")
3333

3434
def save(self, commit: bool = True) -> URL: # noqa: FBT001, FBT002
35-
url = super().save(commit=commit)
35+
url = URL.get_or_create_from_object(self.instance)
3636
if commit:
3737
url.location.tags.set(self.cleaned_data["tags"])
3838
return url

0 commit comments

Comments
 (0)