Dynamic newform and model constraints

2007-09-12 Thread PlanarPlatypus
I am making a build database where each product which can be built has come components which are required to build it. These components in turn have versions which are required for a particular build. The relevant parts of the models are reproduced below. class Component(models.Model): name

Using MultiWidget

2007-11-07 Thread PlanarPlatypus
Hi, I am trying to write a request Tracking system using the following models (Re-ordered and some fields removed for clarity) class Request(models.Model): packages=models.ManyToManyField(Package) class Package(models.Model): product=models.ForeignKey(Product) components=models.ManyT

Partial Validation in newforms

2007-11-27 Thread PlanarPlatypus
Does anyone know of a clean way to do partial validation in djangos newforms. I am basically after a cleaner way to do something like the code below. form = form(request.POST, error_class=SpanErrorList) # Hacky but as of this moment newforms doesn't support partial # validation or getting the

Re: Partial Validation in newforms

2007-11-28 Thread PlanarPlatypus
On Nov 28, 2:10 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]> > wrote: > > > Does anyone know of a clean way to do partial validation in djangos > > newforms. I am basically after a cleaner way to do