mirror of
https://github.com/QingdaoU/Spirit.git
synced 2025-01-01 09:31:48 +00:00
clean up
This commit is contained in:
parent
cc810f5403
commit
fec160fe9a
3
setup.py
3
setup.py
@ -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()
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user