Re: OneToOneField blank=True null=True having an accident

2008-11-30 Thread stevedegrace
I found a solution on my own, and it's a doozy. If anyone can think of something a bit less ugly, let me know. The reason why the global variables are lists is to keep Python from trying to rebind the names as local variables inside the functions on assignment (the very behaviour that makes closur

OneToOneField blank=True null=True having an accident

2008-11-30 Thread stevedegrace
Another problem! I'm using Django 1.0.2, Python 2.5.2, on Ubuntu 8.10. I have a structure of keys and keyrings arranged in a tree of arbitrary depth which I decided to implement as a bunch of models: RootKeyRing, RootKey, SubKeyRing, SubKey (rather than as XML like maybe I should have done) becau