What is the format for __id in filters?

Does this code look correct (assuming characterDefinition is a member
of GameElement):

game.gameelement_set.filter(characterDefinition__id = characterId)

Note the two underscores. Also, I'm assuming gameElement_set gets
changed to lower-case "gameelement_set"?

Finally, can I safely do this the same as before?

    player.user.id = None
    player.save()


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to