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.

Source Distribution

django-compound-field-0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

django_compound_field-0.1-py2.6.egg (5.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page