1. powersurge360
  2. share_search

Commits

powersurge360  committed 3fb6044

Removed a duplicate urls.py entry and changed the redirect for login
url.

  • Participants
  • Parent commits 591969a
  • Branches master

Comments (0)

Files changed (2)

File share_search/reviews/urls.py

View file
  • Ignore whitespace
         StoreUpdateView.as_view(),
         name="store_edit"
     ),
-    url(r'^stores/create/$', StoreCreateView.as_view(), name="store"),
     url(r'^products/$', TemplateView.as_view(template_name="reviews/products.html"), name="product_list"),
     url(r'^stores/create/$', StoreCreateView.as_view(), name="store_create"),
     url(

File share_search/share_site/views.py

View file
  • Ignore whitespace
         if next_url:
             return next_url
 
-        return reverse("site:login")
+        return reverse("home")
 
     def form_valid(self, form):
         user = authenticate(
 
 class LogoutView(RedirectView):
     def get_redirect_url(*args, **kwargs):
-        return reverse("site:login")
+        return reverse("home")
 
     def get(self, *args, **kwargs):
         logout(self.request)
         return super(RegistrationView, self).form_valid(form)
 
     def get_success_url(*args, **kwargs):
-        return reverse("site:login")
+        return reverse("home")