openpolis / open-action

Source code repository for the OpenAction project.
0 stars 3 forks source link

Blog Post without title #11

Closed joke2k closed 11 years ago

joke2k commented 11 years ago

'Post' object has no attribute 'title'

joke2k commented 11 years ago

il campo title viene richiesto da _html_blogpostitem riga 81 delle _actiontags e soprattutto da _html_activityitem riga 97:

def html_activity_item(activity):
...
    if activity.activity_type == consts.TYPE_ACTIVITY_ANSWER:
        extra_content = activity.content_object.title 
...
feroda commented 11 years ago

Aggiungiamo il campo title al Post. Per ora la visualizzazione ancora non ti funziona, ma intanto la POST si. Anche se non salva poi il titolo. foirse doamni mattina riesco a pusharlo

matteo88 commented 11 years ago

Risolto aggiungendo il campo title al modello Post.