ThreadManager date issue

0 views
Skip to first unread message

makn...@gmail.com

unread,
Jun 2, 2008, 10:48:53 PM6/2/08
to snapboard-discuss
Hello,

I have discovered an issue with the 'snapboard/thread_index.html'
template rendering the date on line 37 (using newforms-admin-SVN-7507)

> AttributeError at /forum/
> 'str' object has no attribute 'weekday'

I tried something like this in 'snapboard/managers.py' on line 100,
but it won't evaluate in the query:

> 'date': datetime(*time(extra_last_updated, '%Y-%m-%d %H:%M:%S')[0:5]),

The only other solution I can see (for my short-term needs) is to
iterate through the results in the view(s) or write a template tag.

Cheers,
Aaron

Bo Shi

unread,
Jun 16, 2008, 11:11:02 AM6/16/08
to snapboar...@googlegroups.com
Hi Aaron -

I haven't used the newforms-admin branch yet (though I hear it's going
to be merged soon, so maybe I should :-)

Will try to take a look this week but in the meantime, if you have a
patch, please do send it along and I'll review.


Regards,
Bo

Reply all
Reply to author
Forward
0 new messages