You initialize (__init__) your ZoneType model instead of create()'ing. When 
you save an initialized it doesn't get an id magically.

I suggest you to use ZoneType.objects.create() whenever possible. But if you 
must init your model first; make sure you get() it again to retrieve its id. 
Remember that id's are created on database and they're non-existent before 
save.

-- 
Saygılarımla,
Atamert Ölçgen

 -+-
 --+
 +++

www.muhuk.com
mu...@jabber.org


========================================
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to