Skip to main content
Help us improve Python packaging – donate today!

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.

Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_compound_field-0.1-py2.6.egg (5.5 kB) Copy SHA256 hash SHA256 Egg 2.6 Mar 9, 2010
django-compound-field-0.1.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None Mar 9, 2010

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page