Files
deb-python-semantic-version/doc/django.rst
Raphaël Barrois caa1c01858 Remove SpecItem.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
2012-05-21 21:35:56 +02:00

795 B

Interaction with Django

semantic_version.django_fields

The python-semanticversion package provides two custom fields for Django:

  • VersionField: stores a semantic_version.Version object
  • SpecField: stores a semantic_version.Spec object

Those fields are django.db.models.CharField subclasses, with their ~django.db.models.CharField.max_length defaulting to 200.

Stores a semantic_version.Version as its string representation.

partial

Boolean; whether ~semantic_version.Version.partial versions are allowed.

Stores a semantic_version.Spec as its comma-separated string representation.