Hi

I need to assign one form field dynamically inside django admin when
user change value in select box

class One(models.Model):
    name = models.CharField(max_length=200)
    code =  models.CharField(max_length=100)

class Two(models.Model):
   two_name = models.CharField(max_length=200)
   oner = models.ForeignKey(One)
   oner_code = models.CharField(max_length=100)

Is it possible if suppose when user add "Two" record, then he change
value in "oner" dropdown and "oner_code" can dynamically change it
value according to what "oner" that being selected?
--~--~---------~--~----~------------~-------~--~----~
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 
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