Skip to content
 
 

Latest commit

 

History

67 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages