On Wed, Nov 11, 2009 at 5:06 AM, Sean Brant <[email protected]> wrote: > > Stop me if you have heard this one before. Anyone else find it > annoying that direct_to_template takes the kwarg "template" and most > other generic views take "template_name". Smells a little like php to > me. > > Is this something that should be / can be fixed?
Agreed that it is an annoying wart. I can see two ways we can address this. Firstly we can introduce a 'template_name' argument to direct_to_template that shadows the existing 'template' argument. An error would be raised if you specify both; using 'template' would raise a Deprecation warning. Secondly, we can ignore it in the current implementation, and use the migration to class-based generic views (#6735) as an excuse to clean up that bit of API. Patches welcome :-) Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
