diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-03-28 18:00:17 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-03-28 18:00:17 +0000 |
commit | 0282141a50433312df9f9be2188ccf8ae198b666 (patch) | |
tree | 9f135d466a6bd3ebe05a07eacb061009d0ba71d9 /apps/blog/signals.py | |
parent | 393bfd7ad1f49f473708c7bef336a529aee6a0d8 (diff) |
visual redesign
Diffstat (limited to 'apps/blog/signals.py')
-rw-r--r-- | apps/blog/signals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/blog/signals.py b/apps/blog/signals.py index 41025f1..9809f6f 100644 --- a/apps/blog/signals.py +++ b/apps/blog/signals.py @@ -8,7 +8,7 @@ from locations.models import Region,Country def update_recent(sender, instance, signal, *args, **kwargs): # Update recent entries static file model = get_model('blog', 'entry') - qs = {'object_list': model.objects.filter(status__exact=1).order_by('-pub_date')[1:5]} + qs = {'object_list': model.objects.filter(status__exact=1).order_by('-pub_date')[1:4]} c = Context(qs) t = render_to_string('includes/recent_entries_template.html',c) fpath = '%s%s' %(settings.PROJ_ROOT,'templates/includes/recent_entries.html') |