Re: very heavy problem with edit_inline

2008-06-22 Thread Alessandro Ronchi
Is it possible to add a link on my foreignkeys to edit the external reference? It's strange it's possible to add a new referenced object but not open an existing one and edit it. It should be very very useful. -- Alessandro Ronchi Skype: aronchi http://www.alessandroronchi.net SOASI Soc.Coop.

Re: very heavy problem with edit_inline

2008-06-22 Thread Alessandro Ronchi
2008/6/22, Karen Tracey <[EMAIL PROTECTED]>: > If all fields marked core are blanked, then the object is deleted. If you have a foreignkey with core=True, among others, it deletes also if another core field is not blank. I've tried also with my user: - - - - - user = models.ForeignKey(User,

Re: very heavy problem with edit_inline

2008-06-22 Thread Alessandro Ronchi
2008/6/22, Alessandro Ronchi <[EMAIL PROTECTED]>: > 2008/6/21, Scott Moonen <[EMAIL PROTECTED]>: > > > Yes, I think it is incorrect. It should be set on some field that the user > > can type in and which must not be blank. Then, when that field is left > > blank, the admin will actually delete

Re: very heavy problem with edit_inline

2008-06-22 Thread Karen Tracey
On Sun, Jun 22, 2008 at 3:32 AM, Alessandro Ronchi < [EMAIL PROTECTED]> wrote: > 2008/6/21, Scott Moonen <[EMAIL PROTECTED]>: > > Yes, I think it is incorrect. It should be set on some field that the > user > > can type in and which must not be blank. Then, when that field is left > > blank,

Re: very heavy problem with edit_inline

2008-06-22 Thread Alessandro Ronchi
2008/6/21, Scott Moonen <[EMAIL PROTECTED]>: > Yes, I think it is incorrect. It should be set on some field that the user > can type in and which must not be blank. Then, when that field is left > blank, the admin will actually delete the address. I recommend setting > core=True on the

Re: very heavy problem with edit_inline

2008-06-21 Thread Scott Moonen
Yes, I think it is incorrect. It should be set on some field that the user can type in and which must not be blank. Then, when that field is left blank, the admin will actually delete the address. I recommend setting core=True on the indirizzo field. -- Scott On Sat, Jun 21, 2008 at 2:39

Re: very heavy problem with edit_inline

2008-06-21 Thread Alessandro Ronchi
2008/6/21, Scott Moonen <[EMAIL PROTECTED]>: > Alessandro, see the documentation for the "core" model field option: > http://www.djangoproject.com/documentation/model-api/#core > > You should set core=True on some field that must otherwise be present in an > address. Looks like "indirizzo" is

Re: very heavy problem with edit_inline

2008-06-21 Thread Scott Moonen
Alessandro, see the documentation for the "core" model field option: http://www.djangoproject.com/documentation/model-api/#core You should set core=True on some field that must otherwise be present in an address. Looks like "indirizzo" is such a field. -- Scott On Sat, Jun 21, 2008 at 7:37

very heavy problem with edit_inline

2008-06-21 Thread Alessandro Ronchi
I am trying to let admin users edit related field in one single page. I have a company model that has many addresses, so I've decided to use a Company model and an Address model with foreignkey(Company, edit_inline=models.STACKED) It works correcly until I've edit the company: IT DELETES ALL MY