Ok..this is what I've changed it to... but it's still not displaying an
edit box for my street number....I'm using the Company
changemanipulator...
In my form I'm using the following ( I tried putting a 0 in there like
your sample..but it gave an unindexable object error )
<label for="id_street_number">Street #:</label><br>{{
form.address.street_number }}
Now in my company definition I have:
class Company(models.Model):
company_id = models.AutoField(primary_key=True)
parent_company = models.ForeignKey("self",null=True,blank=True)
address =
models.ForeignKey(Address,unique=True,edit_inline=models.TABULAR)
#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'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---