Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Typo in last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishbah committed May 26, 2015
1 parent 44531de commit 7811076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usersettings/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ def changelist_view(self, request, extra_context=None):
try:
obj = self.model.objects.get(site=site)
change_url = reverse(
'admin:%s_%s_change' % self.self.get_model_info(), args=(obj.pk,),
'admin:%s_%s_change' % self.get_model_info(), args=(obj.pk,),
current_app=self.admin_site.name)
return HttpResponseRedirect(change_url)
except self.model.DoesNotExist:
add_url = '%s?site_id=%s' % (
reverse('admin:%s_%s_add' % self.self.get_model_info(),
reverse('admin:%s_%s_add' % self.get_model_info(),
current_app=self.admin_site.name), site.pk)
return HttpResponseRedirect(add_url)

Expand Down

0 comments on commit 7811076

Please sign in to comment.