openpolis / open-action

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

activity_item template tag raise exception #4

Closed joke2k closed 11 years ago

joke2k commented 12 years ago
TemplateSyntaxError at /

Caught NameError while rendering: global name 'askbot_extensions_consts' is not defined

...
/dev/open_action/openaction/action/templatetags/action_tags.py in html_activity_item (riga 101)

    if activity.activity_type == askbot_extensions_consts.TYPE_ACTIVITY_ANSWER:

ho provato ad importare il modulo askbot_extensions.consts ma poco sotto...

"activity_type" : askbot_extensions_consts.ACTIVITY_TYPE_DISPLAY_D[activity.activity_type],

si riferisce a ACTIVITY_TYPE_DISPLAY_D che non esiste.

matteo88 commented 11 years ago

Luca ha sistemato il codice, non dovrebbe dare più problemi.