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.
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-compound-field-0.1.tar.gz.
File metadata
- Download URL: django-compound-field-0.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be6e262e1444155c17e2a2680eabcc0134bfce8496afac851954cc82fde041e
|
|
| MD5 |
ee0a78f1cde85267a054621359058599
|
|
| BLAKE2b-256 |
0ca994511628cc4553b1c523a2e562c17dbea213ff8f9d747f45a7ac2398e6df
|
File details
Details for the file django_compound_field-0.1-py2.6.egg.
File metadata
- Download URL: django_compound_field-0.1-py2.6.egg
- Upload date:
- Size: 5.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f9fcb21289eb192d41784c2308147fdf64ad99e52bdbc37d83f79285cd2ebd
|
|
| MD5 |
901a89eefeedeaa15a3a42ddc62a2c9f
|
|
| BLAKE2b-256 |
d7e15c18b07de8862504308acdbefcce6205b1d3f98e6272fe54d84f99562b42
|