I've got what appears to be a common (but not often answered) question about the admin interface:
I want to use foreign key fields for aggregation (in the object-oriented sense). This is easily done with model definitions like the following: class USAddress(models.Model): street_line_1 = models.CharField(max_length=120) street_line_2 = models.CharField(max_length=120) city = models.CharField(max_length=50) state = models.CharField(max_length=2) zip_code = models.CharField(max_length=10) class Venue(models.Model): shipping_address = models.ForeignKey(USAddress, null=True) billing_address = models.ForeignKey(USAddress) some_other_field = models.CharField(max_length=120) I'd really like to be able to edit the fields in the shipping address and billing address inline while creating and editing venues in the admin interface. However, I haven't been able to find any simple way to do so. I don't want one-to-many relationships with these foreign keys, I want aggregation. What options do I have? I've thought about making a special address form field or even making an aggregation foreign key form field that would generalize this idea. Thanks for your help, Andrew -- =================================== Andrew D. Ball ab...@americanri.com Software Engineer American Research Institute, Inc. http://www.americanri.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---