Skip to content
Browse files

Fixed #22867 -- Memoized django.utils.version.get_git_changeset().

This improves pickling speed in prelease versions of Django; refs #21430.
  • Loading branch information...
1 parent 9996158 commit 80f4487d17a0040e9be35e7ee6ac478bafe6504a @Suor Suor committed with timgraham
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/utils/
3 django/utils/
@@ -4,6 +4,8 @@
import os
import subprocess
+from django.utils.lru_cache import lru_cache
def get_version(version=None):
"Returns a PEP 386-compliant version number from VERSION."
@@ -50,6 +52,7 @@ def get_complete_version(version=None):
return version
def get_git_changeset():
"""Returns a numeric identifier of the latest git changeset.

0 comments on commit 80f4487

Please sign in to comment.
Something went wrong with that request. Please try again.