AW: automated query if already exists

2011-03-09 Thread Szabo, Patrick (LNG-VIE)
- 146 -Ursprüngliche Nachricht- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Casey Greene Gesendet: Mittwoch, 09. März 2011 14:12 An: django-users@googlegroups.com Betreff: Re: automated query if already exists Hi Patrick, Does get not do what you want?

Re: automated query if already exists

2011-03-09 Thread Casey Greene
Hi Patrick, Does get not do what you want? http://docs.djangoproject.com/en/dev/topics/db/queries/#retrieving-a-single-object-with-get Hope this helps, Casey On 03/09/2011 08:03 AM, Szabo, Patrick (LNG-VIE) wrote: Hi, Since django is able to do so much so easy i was wandering if there was so

automated query if already exists

2011-03-09 Thread Szabo, Patrick (LNG-VIE)
Hi, Since django is able to do so much so easy i was wandering if there was some kind of possibility to check if an entry with the same values already exists. I've tried unique_together but this only does the job on the database end and if i want to store an not unique object i get an erro