SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 16971158 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

force publication citation recalculation on save

parent bf6b01cd
No related branches found
No related tags found
1 merge request!53Force publication citation recalculation on save
......@@ -542,6 +542,8 @@ class DraftPublicationForm(forms.ModelForm):
do_prefill = False
if not self.instance.id:
do_prefill = True
# Set the cf_citation to empty string to force recalculation
self.instance.cf_citation = ""
super().save(*args, **kwargs)
if do_prefill:
self.first_time_fill()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment