Pilsburgh / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Un-sticky-ing a thread breaks ordering #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
By default the sticky field is None. When you un-sticky a thread it gets
set to False and messes up the ordering.

A fix is to remove the null=True from the field, or to add default=False.

Original issue reported on code.google.com by whiteinge on 2 Apr 2009 at 11:14

GoogleCodeExporter commented 9 years ago
In r42, I have changed the sticky field to default to 'False', and reversed the
ordering so that 'sticky=False' items show up first.

To update current data:

UPDATE forums_forum SET sticky='f' WHERE sticky='';

Thanks, whiteinge.

Original comment by rwpoul...@gmail.com on 3 May 2009 at 12:12