I was hoping someone could tell me if there is a way to do this... I thought using follow and true...it should work..but have been unsuccessful.
I have an address object that is tied to a company object: class Address(models.Model): address_id = models.AutoField(primary_key=True) status_id = models.IntegerField(null=True, blank=True) street_number = models.IntegerField(null=True, blank=True) street_name = models.CharField(blank=True, maxlength=135) street_suffix = models.TextField(blank=True) unit_number = models.CharField(blank=True, maxlength=30) city = models.CharField(blank=True, maxlength=135) county = models.CharField(blank=True, maxlength=135) state = models.CharField(blank=True, maxlength=60) country = models.CharField(blank=True, maxlength=135) zip = models.CharField(blank=True, maxlength=30) full_address = models.CharField(blank=True, maxlength=765) street_prefix = models.TextField(blank=True) street_type = models.CharField(blank=True, maxlength=30) update_user = models.ForeignKey(UserInfo) #models.IntegerField(null=True, blank=True) time_stamp = models.DateTimeField() class Meta: db_table = 'address' class Company(models.Model): company_id = models.AutoField(primary_key=True) parent_company = models.ForeignKey("self",null=True,blank=True) address = models.ForeignKey(Address) #models.IntegerField(null=True, blank=True) company_name = models.CharField(blank=True, maxlength=150) company_description = models.CharField(blank=True, maxlength=300) update_user = models.ForeignKey(UserInfo)#models.IntegerField(null=True, blank=True) time_stamp = models.DateTimeField() def __str__(self): return self.company_name class Meta: db_table = 'company' I'm trying to make it so that the Company changemanipulator will display the Address fields as well so that both can be edited at the same time. I read something like this in another post on here...but wasn't sure if it should work or not... below is a snippet of my code: nonfields = {'time_stamp': False,'address':True } manipulator = Company.ChangeManipulator(company_id,follow=nonfields) Then in my form..I tried <label for="id_street_number">Street #:</label><br>{{ form.address.street_number }} But that doesn't seem to work... is this not valid... and how should I be doing it? Thanks for any info. Carole --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---