Re: Default managers must contain all objects?

2008-12-12 Thread Zak Johnson
Zak Johnson wrote: > class Item(models.Model): > is_active = models.BooleanField() > objects = ActiveManager() > inactive_objects = InactiveManager() In case anyone else runs into this problem, the workaround I'm using for now is simply to add a new default manager which contains all

Re: Default managers must contain all objects?

2008-12-12 Thread Malcolm Tredinnick
On Fri, 2008-12-12 at 19:22 -0800, Zak Johnson wrote: [...] > Am I missing something, or is this simply unsupported now? The > documentation notes that it's "a good idea to be careful in your choice > of default manager," but doesn't clearly state that a model's default > manager must not filter

Default managers must contain all objects?

2008-12-12 Thread Zak Johnson
I'm porting one of my applications to 1.0, and have come across what seems like a bug related to the Queryset refactor. Previously, it was possible to have a model's default manager filter the results; something like: class ActiveManager(models.Manager): def get_query_set(self): qs =

Re: Validation Warnings

2008-12-12 Thread Malcolm Tredinnick
On Fri, 2008-12-12 at 09:31 -0800, alex.gay...@gmail.com wrote: > Malcolm, > > I've updated the ticket with a newer patch that removes the messy > globals system, now the form's full_clean() method passes a callable > to each clean method that accepts it, this callable simply uses > closure to k

Re: Validation Warnings

2008-12-12 Thread alex.gay...@gmail.com
Malcolm, I've updated the ticket with a newer patch that removes the messy globals system, now the form's full_clean() method passes a callable to each clean method that accepts it, this callable simply uses closure to keep the current field name and it calls the add_warning method on the form it

Re: Documentation for Comments Framework

2008-12-12 Thread Kegan
Thanks for the reply. I have created a ticket (http:// code.djangoproject.com/ticket/9819). And added a small patch. More patches to come. On Dec 8, 10:10 pm, "Jacob Kaplan-Moss" wrote: > On Mon, Dec 8, 2008 at 4:20 AM, Kegan wrote: > > Is there an active effort in working on the docs? > > The