diff options
author | Magnus Hagander | 2019-01-03 20:52:58 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-01-04 11:24:06 +0000 |
commit | 69af766f8fae8ef489d951c71a37966fc51d736b (patch) | |
tree | 1e394a959d7ec9b49797b6cb74ec2eac5dbd47e8 /django/archives/util.py | |
parent | 1e165224612094e7605d9109e70a3034a0f5a864 (diff) |
Whitespace fixes
Diffstat (limited to 'django/archives/util.py')
-rw-r--r-- | django/archives/util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/archives/util.py b/django/archives/util.py index 4ed9730..cf39e25 100644 --- a/django/archives/util.py +++ b/django/archives/util.py @@ -2,6 +2,7 @@ from django.http import HttpResponse from django.db import connection from django.utils.functional import SimpleLazyObject + def validate_new_user(username, email, firstname, lastname): # Only allow user creation if they are already a subscriber curs = connection.cursor() @@ -14,6 +15,7 @@ def validate_new_user(username, email, firstname, lastname): return HttpResponse("You are not currently subscribed to any mailing list on this server. Account not created.") + def _get_gitrev(): # Return the current git revision, that is used for # cache-busting URLs. @@ -33,6 +35,7 @@ def _get_gitrev(): # If packed-refs also can't be read, just give up return 'eeeeeeee' + # Template context processor to add information about the root link and # the current git revision. git revision is returned as a lazy object so # we don't spend effort trying to load it if we don't need it (though |