-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grappelli doesn't allow to extend some templates #1044
Comments
The Grappelli submit line is not really extendable yet (it doesn't contain a block), I will take a look at that (needs different DOM and styles). |
@Alain1405 I added a new submit line to stable/3.0.x and stable/4.0.x branches. Could you please check if that fits your purpose? |
Hi @parsch , thanks for the quick response! UPDATE: I take it back, it works after refreshing the cache! Thanks for adding this, I will test a little more but looks like it's working. I checked stable/3.0.x |
@Alain1405 thanks for checking! |
I am trying to add an additional
Save
button to the admin. This can be done by extending thesubmit_line.html
template (which is available both in Django and Grappelli templates) as documented here and here.To be clear, I have added a template named
templates/admin/app_name/model_name/submit_line.html
to my project.If I disable Grappelli the template works just fine and I see the new button. With Grappelli enabled the new template has no effect. I tried to change the order of apps without succes.
Template:
UPDATE:
I should clarify that if I change the whole Change form template by setting
change_form_template
variable, then I can extend the whole form, but this is not what I want to doThe text was updated successfully, but these errors were encountered: