Problem deleting object with foreignkey to self

2009-10-01 Thread Lavoie Francis
Hi, I have a puzzle here I can't solve, if you have an idea or a starting point, it would be very useful and appreciated. In order to have an easy way to link to the next object and the previous one (with special ordering), I add to my model two Foreignkey pointing to self. These keys

Re: Deleting Object/

2007-07-08 Thread Russell Keith-Magee
On 7/9/07, TheOrb <[EMAIL PROTECTED]> wrote: > > I am new to Django and getting started with the Poll example. > > 1 ) While in the Shell if type "Poll.objects.a() " I get the result > [, ] > > Why am I getting 2 poll objects and what command can I use to > delete one. Well - you are

Deleting Object/

2007-07-08 Thread TheOrb
I am new to Django and getting started with the Poll example. 1 ) While in the Shell if type "Poll.objects.a() " I get the result [, ] Why am I getting 2 poll objects and what command can I use to delete one. 2) I can view the Admin screen but I am still unable to view the poll app.

Re: Django Admin throws exception when deleting object, many to many field

2007-02-01 Thread Russell Keith-Magee
On 2/2/07, uğurdevriL <[EMAIL PROTECTED]> wrote: > > i added a new 'verb' object, using the django admin, when i want to > delete that object, django admin throws exception below: Look like this might be related to ticket #2828. The message is certainly familiar. If you can add any details to the

Re: upload error | deleting object after it has been uploaded...

2006-08-16 Thread jelle
Hi Ian, Many thanks for your very clear explanation! That was exacty the problem which got me stuck... > As a workaround, try giving another field, such as the title, the > attribute "core=True", and see if that help things. Works flawless now! Many thanks! I hope your patch will be added to

Re: upload error | deleting object after it has been uploaded...

2006-08-15 Thread Ian Clelland
On 8/15/06, jelle <[EMAIL PROTECTED]> wrote: > > > Hi, > > Enjoying django while working on my new site. Things is that I'm > experiencing a freak error. When finishing an upload, the object > generated by the upload action is deleted. > Checking out the history in the admin interface gives the

upload error | deleting object after it has been uploaded...

2006-08-15 Thread jelle
Hi, Enjoying django while working on my new site. Things is that I'm experiencing a freak error. When finishing an upload, the object generated by the upload action is deleted. Checking out the history in the admin interface gives the following: Aug. 15, 2006, 9:09 p.m.jelle Added