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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Egg

File details

Details for the file django-compound-field-0.1.tar.gz.

File metadata

File hashes

Hashes for django-compound-field-0.1.tar.gz
Algorithm Hash digest
SHA256 8be6e262e1444155c17e2a2680eabcc0134bfce8496afac851954cc82fde041e
MD5 ee0a78f1cde85267a054621359058599
BLAKE2b-256 0ca994511628cc4553b1c523a2e562c17dbea213ff8f9d747f45a7ac2398e6df

See more details on using hashes here.

File details

Details for the file django_compound_field-0.1-py2.6.egg.

File metadata

File hashes

Hashes for django_compound_field-0.1-py2.6.egg
Algorithm Hash digest
SHA256 99f9fcb21289eb192d41784c2308147fdf64ad99e52bdbc37d83f79285cd2ebd
MD5 901a89eefeedeaa15a3a42ddc62a2c9f
BLAKE2b-256 d7e15c18b07de8862504308acdbefcce6205b1d3f98e6272fe54d84f99562b42

See more details on using hashes here.

Supported by

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