Gauravwagh / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
Other
0 stars 0 forks source link

delete_confirmation and delete_selected_confirmation tempaltes are missing 1.3 feature #381

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Django 1.3 and Grappelli 2.3 (r1449)

A nice feature to protected fk relation delation was added in Django 1.3:
Doc: 
https://docs.djangoproject.com/en/1.3/ref/models/fields/#django.db.models.Foreig
nKey.on_delete

The admin templates were updated to handle the protected feature, see Ticket: 
https://code.djangoproject.com/ticket/14672

The 2 interesting changes are:
https://code.djangoproject.com/changeset/15249#file2 and 
https://code.djangoproject.com/changeset/15249#file3

Those 2 templates were not impacted in Grappelli.

I'm joining the 2 updated Grappelli templates that I'm using to handle the new 
feature ;)

Original issue reported on code.google.com by thomas.d...@gmail.com on 27 Jun 2011 at 10:43

Attachments:

GoogleCodeExporter commented 9 years ago
thanks for the patch. fixed with r1450

Original comment by sehmaschine on 29 Jun 2011 at 12:24