Skip to content

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

License

Notifications You must be signed in to change notification settings

Archmonger/django-versionfield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.8%
  • HTML 9.2%