summaryrefslogtreecommitdiff
path: root/django/utils/version.py
AgeCommit message (Collapse)Author
2017-10-13Fixed #28708 -- Added constants to detect the Python version.Tim Graham
2017-06-13Fixed #27830 -- Used distutils.version.LooseVersion for version parsing.chillaranand
2017-02-11Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.Anton Samarchyan
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-18Refs #23919 -- Stopped using django.utils.lru_cache().Aymeric Augustin
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-01-13Refs #25769 -- Updated docs to reflect get_version() uses PEP 0440.Tim Graham
2015-11-19Fixed #25769 -- Updated get_version() release candidate naming for PEP 0440.Tim Graham
2015-04-06Fixed #24562 -- Renamed get_major_version() to get_main_version()Tim Graham
This reflects the actual behavior of the method.
2014-12-25Fixed #23866 -- Harmonized refs to Django documentation from codeClaude Paroz
2014-08-23Fixed #22867 -- Memoized django.utils.version.get_git_changeset().Tim Graham
Restored original fix that had to be removed because the old djangoproject server was still using Python 2.6.
2014-08-04Fixed a typo in comment in django/utils/version.pySitesh Shrivastava
2014-06-23Fixed #22867 -- Memoized django.utils.version.get_git_changeset().Loic Bistuer
This follows commits 80f4487 and 01399fa; original patch had to be reverted because it wasn't Python 2.6 compatible and we need it to be in order to build docs on the djangoproject.com server. This fix should be replaced by @lru_cache as soon as we drop Python 2.6 compatibility. Thanks Florian Apolloner for the review and Alexander Schepanovski for the original patch.
2014-06-19Revert "Fixed #22867 -- Memoized django.utils.version.get_git_changeset()."Aymeric Augustin
This reverts commit 80f4487 temporarily, because that commit prevented the djangoproject.com server from building the docs, because it still uses Python 2.6.
2014-06-19Fixed #22867 -- Memoized django.utils.version.get_git_changeset().Alexander Schepanovski
This improves pickling speed in prelease versions of Django; refs #21430.
2014-06-11Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets ↵Anubhav Joshi
from a different Django version. Thanks FunkyBob for the suggestion, prasoon2211 for the initial patch, and akaariai, loic, and charettes for helping in shaping the patch.
2013-11-02More attacking E302 violatorsAlex Gaynor
2012-10-25Ensured get_version returns a native string.Aymeric Augustin
Returning unicode triggers a bug in Python 2.7: http://bugs.python.org/issue11638 This problem was introduced in 4a103086 (unicode_literals).
2012-06-08Used git log instead of git show for last commit's timestampAnssi Kääriäinen
The reason for this was that git show included the whole changeset in the output, but only the UTC timestamp was needed. By using git log it is possible to get just the timestamp. The whole changeset can be large, and can cause unicode encoding errors.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-04-29Moved version code out of __init__.py.Adrian Holovaty
Moved everything except VERSION and a get_version() stub out of the top-level __init__.py, so that we're not importing all that stuff all the time. And because it's cleaner.
2012-04-29Fixed #18224 -- Changed the dev version number.Aymeric Augustin
Following the move from SVN to git.
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-03Fixed #10372: made `get_svn_revision()` more robust. Thanks, mboersma.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-24Fixed #5237 -- Added an optional 'path' argument to get_svn_revision(). ↵Adrian Holovaty
Thanks, django@poelzi.org git-svn-id: http://code.djangoproject.com/svn/django/trunk@5995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-21Fixed #5215 -- Added Subversion revision number to Django version string. ↵Adrian Holovaty
Thanks for the patch, Deryck Hodge git-svn-id: http://code.djangoproject.com/svn/django/trunk@5990 bcc190cf-cafb-0310-a4f2-bffc1f526a37