Skip to content

Commit

Permalink
Fix templatetag
Browse files Browse the repository at this point in the history
  • Loading branch information
janbaykara authored Jul 15, 2022
1 parent 9e48ea5 commit 51957fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/templatetags/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ def user_data(context):

return {"user_data": mark_safe(json.dumps(user_data))}

@register.simple_tag
def oauth_application_from_query(takes_context=True):
@register.simple_tag(takes_context=True)
def oauth_application_from_query(context):
try:
request = context["request"]
print("request.GET", request.GET)
next = request.GET.get('next', None)
print("next", next)
if next is not None:
print("next", next)
next_url_parts = urllib.parse.urlparse(next)
print("next_url_parts", next_url_parts)
print("next_url_parts.query", next_url_parts.query)
Expand Down

0 comments on commit 51957fc

Please sign in to comment.