django-compound-field is a Django add-on that allows you to define compound fields, e.g.
{{{
class AddressField(CompoundField):
phone = models.CharField(max_length=30)
mobile = models.CharField(max_length=30)
fax = models.CharField(max_length=30)
email = models.EmailField()
}}}
Compound fields have no representation in the database, they just contribute the fields one by one to their carrier model.
Product's homepage
Requirements:
· Python
· Django
Limitations:
· You cannot nest compound fields (because the metaclass collects only Fields, and a CompoundField is not a Field)
· You cannot assign the whole compound field during keyword based creation.
· The fields in the carrier model are added out-of-order at the end.