John, Thank you for the kind words and advice.
Also, thanks for pointing out about the template requirements. My big problem with the method I posted above, ie: {% block options %} <p><a href="http://localhost:8000/sam/quote/ delete/{{ object.id }}">delete</a>{% endblock %} is that it violates the DRY principle because I have to go on each template and add a different link. I.e. project form: <p><a href="http://localhost:8000/sam/project/ delete/{{ object.id }}">delete</a> email form: <p><a href="http://localhost:8000/sam/email/ delete/{{ object.id }}">delete</a> I'm thinking there must be a more elegant way to implement this functionality, which must be extremely common? On Nov 26, 11:11 pm, John M <[EMAIL PROTECTED]> wrote: > Dominic, Welcome to the django forum :) and welcome to django > > > Which I've tested and seems to be working ok. (The documentation, by > > the way, didn't mention anything about requiring > > foo_confirm_delete.html but I guess that's not too hard to figure out > > from the error message) > > Actually, at the end of that section for delete, it mentions the > template requirements: > Template name: > > If template_name isn't specified, this view will use the template > <app_label>/<model_name>_confirm_delete.html by default. > > As do all the generic views. > > > I could I suppose fairly easily stick a link on the template that > > redirects to my generic delete URL. However, one of my aims with this > > project is to try to do everything as intelligently as possible, so I > > wonder if there is any way I can include django save and add another/ > > delete/cancel widgets onto the form automatically? > > That's how it's done in admin, and that's how i've done it, I don't > see an issue with doing it that way. > > > > > I'll eventually be wanting to put those "edit in line" green cross > > buttons onto foreign key input fields too, so I'm thinking django must > > have a standard sort of widget set to allow this? > > I think there was a thread on this the other day. > > Good Luck. > > > Cheers, > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---