Re: Help with adding custom validation to the admin

2009-03-12 Thread Vincent
On Mar 12, 10:16 am, Vincent wrote: > Thanks Alex. > > I spent the better part of my day yesterday pouring over both of those > pages prior to posting a request for help here. I think part of the > problem is that I only loosely understand the whole model, form, view > paradigm and am therefore

Re: Help with adding custom validation to the admin

2009-03-12 Thread Vincent
On Mar 11, 6:56 pm, Alex Gaynor wrote: > For additional validation you should provide a custom > form:http://docs.djangoproject.com/en/dev/ref/contrib/admin/#form > > and to set the fields automatically you should use the save_model > hook:http://docs.djangoproject.com/en/dev/ref/contrib/admin

Re: Help with adding custom validation to the admin

2009-03-11 Thread Alex Gaynor
On Wed, Mar 11, 2009 at 5:42 PM, Vincent wrote: > > Hi all: > > I am just getting started with Django and could really use some > initial help. My first hurdle is this: I would like to have the act of > choosing a file automatically propagate several of fields of my model. > Bellow is an example

Help with adding custom validation to the admin

2009-03-11 Thread Vincent
Hi all: I am just getting started with Django and could really use some initial help. My first hurdle is this: I would like to have the act of choosing a file automatically propagate several of fields of my model. Bellow is an example of the model of interest here: ##models.py from django.db imp