On Jun 11, 6:35 pm, Joseph Brown <joseb...@gmail.com> wrote:
> Hi Justin - Thanks & sorry I missed your email until just now.  I did try
> that, and it's interesting: it worked for any of the date based generic
> views that took a datepart parameter in the url, i.e. archive_year,
> archive_month, and archive_day.  But archive_index just ignores it.  

Weird.

> Also tried adding an order_by to the model, which had the same effect.  I'm 
> out
> of my league but am guessing that the archive_index sets its own order by,
> perhaps in a custom query via the date_field solely ..

Looking at the code, I'd say you're right:
http://code.djangoproject.com/browser/django/trunk/django/views/generic/date_based.py

I wonder why that is.

> I've kinda given up on this one and just came up with a different look and
> feel for the site to promote featured blogs.

Fair enough. Hope that one's working out for you. Sorry this one
didn't work out.

> Thanks again,
> Joe
>
> On Tue, Jun 9, 2009 at 12:52 PM, Justin Myers <masterb...@gmail.com> wrote:
>
> > Have you tried this yet?
>
> > info_dict = {
> >    'queryset': Entry.objects.order_by(-featured),
> >     'date_field': 'pub_date'
> > }
> > urlpatterns = patterns('django.views.generic.date_based',
> > ...
> >   (r'^$',  'archive_index', info_dict),
> > )
>
> > I haven't checked whether or not it works, but it seems like it'd do
> > the job.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to