This commit is contained in:
esteban 2015-04-07 21:14:10 -03:00
parent cc810f5403
commit fec160fe9a
3 changed files with 6 additions and 2 deletions

View File

@ -1,11 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import unicode_literals
import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
REQUIREMENTS = open(os.path.join(os.path.dirname(__file__), 'requirements.txt')).read()

View File

@ -125,6 +125,7 @@ def resend_activation_email(request):
return render(request, 'spirit/user/activation_resend.html', context)
# TODO: decouple profile from user but maintain the url schema coz I like it that way
@login_required
def profile_update(request):

View File

@ -81,7 +81,9 @@ class InlineLexer(mistune.InlineLexer):
# New mention
try:
user = User.objects.get(username=username)
user = User.objects\
.select_related('st')\
.get(username=username)
except User.DoesNotExist:
return m.group(0)