I'm using one LFC installed by easy_install for few sites..
Where and how can I change the ordering of posts in lfc_blog?
I've changed the Meta and _meta of BlogPost model (in settings.py),
but it didn't help
Thanks!
Krzysiek
--
Regards,
Krzysiek Szczuka
--
Maciej Wi�niowski
http://natcam.pl
Hi Maciej :)
Yes, I've seen that and I'm using it right now..
But I'd like to order that 'automagically' by creation_date or
publication_date DESC, as it usually is in blogs :)
Thanks any way
--
Pozdrawiam,
Krzysiek Szczuka
Yes, I've seen that and I'm using it right now..
But I'd like to order that 'automagically' by creation_date or
publication_date DESC, as it usually is in blogs :)
from lfc.signals import post_content_added
from lfc.views import _update_positions
from lfc_blog.models import BlogEntry
def reorder_objects(sender, instance, **kwargs):
instance.position = 1
instance.save()
_update_positions(instance, take_parent=True)
post_content_added.connect(reorder_objects, sender=BlogEntry)
--
Maciej Wisniowski
http://natcam.pl
W dniu 22.03.2011 07:58, Kai Diefenbach pisze:
> Hi,
>
> Am 22.03.2011 um 07:25 schrieb Krzysiek Szczuka:
>
>> Yes, I've seen that and I'm using it right now..
>> But I'd like to order that 'automagically' by creation_date or
>> publication_date DESC, as it usually is in blogs :)
>
> This is not possible yet, but planned for one of the next releases.
>
> Kai
>
> --
> IQ++
> Tel: +49 361 / 6636700
> Fax: +49 361 / 6636702
> Mail: kai.die...@iqpp.de <mailto:kai.die...@iqpp.de>
> Web: http://www.iqpp.de <http://iqpp.de/>
> Skype: kai.diefenbach
>