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

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page