Model.objects.get() raises AssertionError on multiple values

2007-02-14 Thread Rob Hudson
I'm wondering if maybe get should raise an error with a name like "MultipleValueError" rather than "AssertionError" when multiple values are found... Yesterday I was wiring up a toggle method. If the row is in the database, remove it. If it isn't in the database, add it. I don't have the exact

Re: Adding support for replacing the auth User model to fit custom needs

2007-02-14 Thread voltron
This is great! Would this be rolled in the latest SVSN version? On Feb 12, 6:04 pm, "RonnyPfannschmidt" <[EMAIL PROTECTED]> wrote: > sweet - thats a good start > > On 12 Feb., 17:21, "Gary Wilson" <[EMAIL PROTECTED]> wrote: > > > On Feb 12, 9:01 am, "RonnyPfannschmidt" <[EMAIL PROTECTED]> > > wro

Re: newforms, "reverse inline" editing, fieldsets

2007-02-14 Thread simonbun
Maybe an example is in order to explain my point further: class Base: name slug created_at created_by ... content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() content_object = models.GenericForeignKey() class Product: base = models.ForeignKey

Re: Enhancing MergeDict

2007-02-14 Thread Michael Radziej
Hi, John Calixto: > I have an almost trivial (although it was helpful to me) enhancement for > django.utils.datastructures.MergeDict. It basically adds __str__ and > __repr__ methods so that you can see more meaningful output than just > the standard "" string. > > Here's my diff: > > === djan