Skip to content
Snippets Groups Projects
Commit 4f4bbf6d authored by ynerant's avatar ynerant
Browse files

Fix server starting

parent f09364d3
No related branches found
No related tags found
1 merge request!32Activity management
Pipeline #8057 passed with warnings with stages
in 3 minutes and 29 seconds
......@@ -35,7 +35,9 @@ class TransactionTemplateForm(forms.ModelForm):
NoteClub,
attrs={
'api_url': '/api/note/note/',
'api_url_suffix': '&polymorphic_ctype=' + str(ContentType.objects.get_for_model(NoteClub).pk),
# We don't evaluate the content type at launch because the DB might be not initialized
'api_url_suffix':
lambda value: '&polymorphic_ctype=' + str(ContentType.objects.get_for_model(NoteClub).pk),
'placeholder': 'Note ...',
},
),
......
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