A DB Independent Custom Django Field for storing Version numbers for fast indexing
Project description
django-versionfield
Installation
- Install
django-versionfield
pip install django-versionfield
- Add to
INSTALLED_APPS
INSTALLED_APPS = [
...
'versionfield',
...
]
Usage:
from versionfield import VersionField
class SomeModel(models.Model):
version = VersionField()
Sample Queries:
SomeModel.objects.filter(version__gt="1.0.0")
SomeModel.objects.filter(version__gt="1.0")
Widget
from versionfield.widgets import VersionWidget
class SomeForm(ModelForm):
some_field = VersionField(widget = VersionWidget)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-versionfield-1.0.0.tar.gz
(294.1 kB
view hashes)
Built Distribution
Close
Hashes for django-versionfield-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da0b02cf9a4a451395867fec3b7722c7f96186327fabfd8db8d0a782db32b43b |
|
MD5 | fb78382d14c90a797218a14c384aeae9 |
|
BLAKE2b-256 | 18e2519caa126ee22e3b7f302faefa103d6ccbaa7b1014b07b97e27620a10366 |
Close
Hashes for django_versionfield-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45e7fd07a9a1270eb4aa45bce9d4d267c0fc8ce984bf1ecbd47f98f1ec3a8bfc |
|
MD5 | 984e223cdab7ee1dc4a3a3626eb4deb3 |
|
BLAKE2b-256 | 24c3d9e9cc6390177d81bea0fca6d9bc35b26377aa05165dc691401452cbeb1d |