On Apr 10, 12:38 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Can your get_hot() method (is it manager?) use filter() instead of
> get()? This way you would get QuerySet.

Well, it is a custom manager method that uses filter(). I just named
it get_hot (which, now that you mention it, may be a bit misleading).
The DoesNotExist exception is also raised when I call a generic view w/
o extra context when I have no news items in the database (this is not
a ciritical bug, though).

I will double-check my custom manager code to make sure it uses
filter(), but I don't think that's the problem... I'll post the custom
manager code here if you don't mind taking a quick look at it.

--
Branko
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to