-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Rowell wrote:
> I guess I don't understand where this constructor lives in the food
> chain. It can't exist prior to the first save() of the object because
> we don't have the id before that. I tried putting it *in* the save()
> and it did nothing. (BTW, that last one really bothers me.)
> 
> Or are you talking about a constructor for the edit form? That might
> work, if I can figure out how to inject it at the right place.
> 
> I think I need to stare at the db/forms code for a while.

Hmm, maybe I am wrong on this.  I'm new to Django/Python, but not to
object oriented design (I'm a C++ guy), so take what I say with a grain
of salt.  This may not be allowed in the models.py, but if it is,
perhaps having an __init__ function in your Vineyard class could allow
you to set pinot noir as the default, unless it is passed another type
of wine.  Would anybody care to comment on whether this is possible?

- --
Randy Barlow
Software Developer
The American Research Institute
http://americanri.com
919.228.4971
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhG05sACgkQw3vjPfF7QfUfbgCgl/fd6/xtpSOMZZb60zzqU75i
sZsAnjxp32Ua3WU2jB+Uc1iBIhoeEsQQ
=/LpA
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
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