#11939: Better conventions between generic views and  syndication feed framework
-------------------------------------------------------+--------------------
 Reporter:  fractal                                    |       Owner:  nobody   
 
   Status:  new                                        |   Milestone:           
 
Component:  RSS framework                              |     Version:  1.1      
 
 Keywords:  suggestion, improvement rss object_detail  |       Stage:  
Unreviewed
Has_patch:  0                                          |  
-------------------------------------------------------+--------------------
 There is a small inconsistency between generic view object_detail and item
 template from the feed framework.

 One names the return object: {{ object }} the other {{ obj }}

 Having the same name would simplify the interchange of templates among
 them.

 It is not far fetched to have a generic view for post_detail and using
 that as the template for item post on the feed.

 object_detail documentation:
 object: The object. This variable's name depends on the
 template_object_name parameter, which is 'object' by default. If
 template_object_name is 'foo', this variable's name will be foo.

 syndication feed framework documentation:
 feeds/latest_description.html  for example uses {{ obj }} -- The current
 object (one of whichever objects you returned in items()).

 Cheers

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11939>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to