On 1/19/07, qhfgva <[EMAIL PROTECTED]> wrote:
I think you have a small error in your example. Should be: class Thing(models.Model): #element = models.ForeignKey(Thing) element = models.ForeignKey(Element) name = models.CharField(maxlength=100)
Thank you, corrected.
So I guess I was misunderstanding the point of editable being False. My hope was to set this value on create and have it be unchangeable after that. How do you even set the value of a column that has editable=False? In otherwords what is this parameter for?
I found this article: http://www.b-list.org/weblog/2006/11/02/django-tips-auto-populated-fields It's about non editable auto populated fields. -- Maxime Biais http://www.biais.org/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---