Make use of templates in feeds.py optional
Reported by: |
christoph.neuroth@… |
Owned by: |
|
Component:
|
contrib.syndication
|
Version:
|
dev
|
Severity:
|
|
Keywords:
|
|
Cc:
|
albrecht.andi@…
|
Triage Stage:
|
Accepted
|
Has patch:
|
yes
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
When creating a feed you have to specify title, description and link for each item. For the link this is really easy by overriding the item_link method, which is called for every item.
def item_link(self, obj):
return '/feed/'+str(obj.id)
However for the description and title fields you have to create two template files which in most cases will consist of only a single line of code("{{ obj.foo }}"). IMHO this is extremely ugly - it would be much nicer if you could just overide one method similar to item_link:
def item_title(self, obj):
return obj.header
def item_description(self, obj):
return obj.teaser
Change History
(9)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Julian Bez
|
Status: |
new → assigned
|
Cc: |
albrecht.andi@… added
|
Owner: |
Julian Bez removed
|
Status: |
assigned → new
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Makes templates optional + includes the fix for #6533