This might be a syntax problem. This is the syntax I use:

object, created = Entity.objects.get_or_create(id=12)

On Apr 28, 12:12 pm, Thierry <[EMAIL PROTECTED]> wrote:
> The get or create syntax does not appear to support the following
> syntax:
>
> object, created = get_or_create(entity_id = 12)
>
> it fails on the _id part.
> is there anyway to give it numbers instead of objects?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to