Re: The only click to add any class

2006-06-16 Thread Grigory Fateyev
Hello Jorge Gajon! On Thu, 15 Jun 2006 13:15:05 -0500 you wrote: > The hint is in the error message. > You must pass a Region object to the region parameter, > new_data['region'] contains only the id that the user selected from > the select list. > > You can do this: > > def save(self, new_data

Re: The only click to add any class

2006-06-15 Thread Jorge Gajon
> And when I save form, got this error: > Invalid value: 'region' should be a 'serp2.apps.common.models.Region'> instance, not a Request The hint is in the error message. You must pass a Region object to the region parameter, new_data['region'] contains only the id that the user selected from t

Re: The only click to add any class

2006-06-15 Thread Grigory Fateyev
Hello Malcolm Tredinnick! On Thu, 15 Jun 2006 12:51:33 +1000 you wrote: > > On Tue, 2006-06-13 at 16:56 +0400, Grigory Fateyev wrote: > Create your form to collect the data you need. Make the submit button > on that form send you to a view method to handle the submission as per > normal (see [1]

Re: The only click to add any class

2006-06-14 Thread Malcolm Tredinnick
On Tue, 2006-06-13 at 16:56 +0400, Grigory Fateyev wrote: > Hello! > > We have compositely app 'Address' with lots of classes. Like: Region, > Country, Location and etc. And to fill the only address users need to > click some forms to add one address. It's awfully ;( > > Is it possible to write

Re: The only click to add any class

2006-06-14 Thread Grigory Fateyev
Hello Grigory Fateyev! On Tue, 13 Jun 2006 16:56:14 +0400 you wrote: > > Hello! > > We have compositely app 'Address' with lots of classes. Like: Region, > Country, Location and etc. And to fill the only address users need to > click some forms to add one address. It's awfully ;( > > Is it pos

The only click to add any class

2006-06-13 Thread Grigory Fateyev
Hello! We have compositely app 'Address' with lots of classes. Like: Region, Country, Location and etc. And to fill the only address users need to click some forms to add one address. It's awfully ;( Is it possible to write (Add|Change)Manipulator to commit data from some forms at that time? To