Skip to main content

A DB Independent Custom Django Field for storing Version numbers for fast indexing

Project description

django-versionfield

PyPI version PyPi downloads

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)

Uploaded Source

Built Distribution

django_versionfield-1.0.3-py3-none-any.whl (414.8 kB view details)

Uploaded Python 3

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

Hashes for django-versionfield-1.0.3.tar.gz
Algorithm Hash digest
SHA256 3ad461fcd61bc8f3ca30c7ca11a7bf956d9ca4619de443ebfb2e5acf34fc01a8
MD5 523886805f62d6ae07ab89f3331bb1fe
BLAKE2b-256 6d98c18c27bb3a0e3c6190e0ae6986f2ce1842a52a2cd7e6a9d9568e5559f397

See more details on using hashes here.

File details

Details for the file django_versionfield-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_versionfield-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3a8325fd7b06c25f55628d4218ed613136354f3c81623e1d923c867872aa387
MD5 909c3d2d3ee1b072a5310119d24d1385
BLAKE2b-256 29ba92b3c4d8d2be95893417e959895d14ef168b96bd275c702d44e81a8b88db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page