Relative Content

Tag Archive for pythondjangosortingormdjango-orm

Sort version number of format 1.1.1 in Django

I have a Django model with a release_version char field that stores version information in the format 1.1.1 (e.g., 1.2.3). I need to sort a queryset based on this version field so that versions are ordered correctly according to their major, minor, and patch numbers.