Commit d8a10713 authored by David Haynes's avatar David Haynes
Browse files

Link creation now supports registereduser

- yay
parent bda831e7
......@@ -31,7 +31,7 @@
<a href="{{url.target}}">{{url.target}}</a>
<br />
{% if url.owner == request.user and request.user|is_registered %}
{% if url.owner == request.user.registereduser.user and request.user.registereduser.approved == True %}
<strong>Clicks:</strong>
{{url.clicks}}
<br />
......
......@@ -41,7 +41,7 @@ def index(request):
# We don't commit the url object yet because we need to add its
# owner, and parse its date field.
url = url_form.save(commit=False)
url.owner = request.user
url.owner = request.user.registereduser.user
# If the user entered a short url, it's already been validated,
# so accept it. If they did not, however, then generate a
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment