Skip to main content

A compound field for Django

Project description

== 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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-compound-field, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_compound_field-0.1-py2.6.egg (5.5 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size django-compound-field-0.1.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page