What you have should work.  Using your models (on .96):
In [1]: from sandbox import models as pm


In [2]: p=pm.Poll.objects.get(pk=1)


In [3]: p.choice_set.create(choice="too much tea",votes=0)

Out[3]: <Choice: Choice object>


In [4]: p.choice_set.all()

Out[4]: [<Choice: Choice object>, <Choice: Choice object>]


Anytime things fail to work the way I expect them to, I delete all
the .pyc files.  It seems like one time out of a hundred, something
will get hosed and one won't get updated.  It happens enough I made a
small script file in my project directory (making it a script keeps me
from doing something dumb like deleting *.py instead of *.pyc)

#!/bin/bash

find . -type f -name "*.pyc" -exec rm -f {} \;
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to