Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

renamed _profile to base_profile

  • Loading branch information...
commit a7bff188b53388b47a204a7992d9a23907ae714a 1 parent 12763e1
@brosner brosner authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 idios/views.py
View
6 idios/views.py
@@ -99,7 +99,7 @@ def profile_by_pk(request, profile_pk, profile_slug, **kwargs):
raise Http404
profile = get_object_or_404(profile_class, pk=profile_pk)
page_user = profile.user
- return _profile(request, profile, page_user, **kwargs)
+ return base_profile(request, profile, page_user, **kwargs)
def profile(request, username, **kwargs):
@@ -107,10 +107,10 @@ def profile(request, username, **kwargs):
page_user = get_object_or_404(User, username=username)
profile_class = get_profile_model()
profile = get_object_or_404(profile_class, user=page_user)
- return _profile(request, profile, page_user, **kwargs)
+ return base_profile(request, profile, page_user, **kwargs)
-def _profile(request, profile, page_user, **kwargs):
+def base_profile(request, profile, page_user, **kwargs):
template_name = kwargs.pop("template_name", "idios/profile.html")
group, bridge = group_and_bridge(kwargs)
Please sign in to comment.
Something went wrong with that request. Please try again.