django-compound-field 0.1
A compound field for Django
== django compound field ==
This addon 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.
== KNOWN BUGS ==
* 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.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-compound-field-0.1.tar.gz (md5) | Source | 2010-03-09 | 3KB | 445 | |
| django_compound_field-0.1-py2.6.egg (md5) | Python Egg | 2.6 | 2010-03-09 | 5KB | 521 |
- Author: Andreas Kostyrka
- License: BSD
- Categories
- Package Index Owner: yacc
- DOAP record: django-compound-field-0.1.xml
