edit_inline does not save?

2008-10-28 Thread Daniel Austria
Hello, i got a huge problem. I have got an Idea class and an ideacomment class. You can guess what these classes are used for. What i do is the following: - the ideacomment class has an foreignkey - this foreignkey is marked as edit_inline - when i edit an idea instance in the admin i can also a

Re: edit_inline does not save?

2008-10-28 Thread Daniel Austria
dmin inlines instead. > > Erik > > On 28.10.2008, at 12:47, Daniel Austria wrote: > > > > > Hello, > > > i got a huge problem. I have got an Idea class and an ideacomment > > class. You can guess what these classes are used for. What i do is the > >

Re: edit_inline does not save?

2008-10-28 Thread Daniel Austria
Hi Daniel, thanks for your response. You were absolutely right with your idea. i removed the core=True ... and it works. Thanks again, Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Overwriting the delete() Method in a Model

2008-06-17 Thread Daniel Austria
Hi there, got a Problem. Maybe someone knows a solution. I have a model Data which is linked via a foreignkey to the model Participant. I have overwritten the delete() Method in the model Data. When i delete a instance of Data via the Admin-Interface, delete() is called appropriately. When i del

Re: Overwriting the delete() Method in a Model

2008-06-17 Thread Daniel Austria
Cool! Thank you very much for your response. i ll use signals! regards Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com

Re: Overwriting the delete() Method in a Model

2008-06-25 Thread Daniel Austria
Thanks Guys, for your responses. I used the pre_delete signal. When i delete a participant object via admin interface, the related Data Instances are also deleted and pre_delete is called. That work s for me pretty good. Many thanks, Dan --~--~-~--~~~---~--~~ You

Store a class in django session object

2007-12-20 Thread Daniel Austria
Hi all, is there something to bear in mind, if i store a instance of a class in a django session? e.g. there is a class product and i want to request.session['CURRENT_PRODUCT'] = myproduct As far as i know, this should be allowed. Isn't it? Greets, Dan --~--~-~--~~~

Database API

2006-10-17 Thread Daniel Austria
Hi, to those who are experienced in django: i just want to avoid making mistakes at the database level. intro: I have an existing produkt p (class produkt) in the database. It has a few other keys to the table attribute. So attribute (class attribute) has a ForeignKey to produkt. todo: Take the

Problem with order_with_respect_to

2006-10-30 Thread Daniel Austria
Hi, i have a problem with the order_with_respect_to field in the Meta-Class. Editing the Model in the Admin interface (Saving new levels) i get the exception: You can't specify target table 'heracles_level' for update in FROM clause If i remove the order_with_respect_to field, it works fine.