django-compound-field

A compound field for Django
Download

django-compound-field Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Andreas Kostyrka
  • Publisher web site:
  • http://kostyrka.org

django-compound-field Tags


django-compound-field Description

A compound field for Django django-compound-field is a Django add-on that 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. Requirements: · Python · Django Limitations: · 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.


django-compound-field Related Software