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.3.tar.gz
(411.3 kB
view details)
Built Distribution
File details
Details for the file django-versionfield-1.0.3.tar.gz
.
File metadata
- Download URL: django-versionfield-1.0.3.tar.gz
- Upload date:
- Size: 411.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad461fcd61bc8f3ca30c7ca11a7bf956d9ca4619de443ebfb2e5acf34fc01a8 |
|
MD5 | 523886805f62d6ae07ab89f3331bb1fe |
|
BLAKE2b-256 | 6d98c18c27bb3a0e3c6190e0ae6986f2ce1842a52a2cd7e6a9d9568e5559f397 |
File details
Details for the file django_versionfield-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: django_versionfield-1.0.3-py3-none-any.whl
- Upload date:
- Size: 414.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a8325fd7b06c25f55628d4218ed613136354f3c81623e1d923c867872aa387 |
|
MD5 | 909c3d2d3ee1b072a5310119d24d1385 |
|
BLAKE2b-256 | 29ba92b3c4d8d2be95893417e959895d14ef168b96bd275c702d44e81a8b88db |