-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switched to using new urls.path() from Django 2
- Loading branch information
Showing
9 changed files
with
46 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
from django.conf.urls import url, include | ||
from django.contrib.auth import views as auth_views | ||
from django.urls import reverse_lazy | ||
from django.urls import path | ||
|
||
from bizwiz.accounts.forms import login_helper | ||
|
||
app_name = 'accounts' | ||
|
||
urlpatterns = [ | ||
url(r'^login/$', auth_views.LoginView.as_view( | ||
path('login/', auth_views.LoginView.as_view( | ||
template_name='accounts/login.html', | ||
extra_context={'helper': login_helper}, | ||
), name='login'), | ||
url(r'^logout/$', auth_views.LogoutView.as_view(), name='logout'), | ||
path('logout/', auth_views.LogoutView.as_view(), name='logout'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from bizwiz.articles import views | ||
|
||
app_name = 'articles' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.List.as_view(), {'show_inactive': True}, name='list'), | ||
url(r'^active/$', views.List.as_view(), {'show_inactive': False}, name='list_active'), | ||
url(r'^create/$', views.Create.as_view(), name='create'), | ||
url(r'^edit/(?P<pk>[0-9]+)/$', views.Update.as_view(), name='update'), | ||
path('', views.List.as_view(), {'show_inactive': True}, name='list'), | ||
path('active/', views.List.as_view(), {'show_inactive': False}, name='list_active'), | ||
path('create/', views.Create.as_view(), name='create'), | ||
path('edit/<int:pk>/', views.Update.as_view(), name='update'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from bizwiz.common import views | ||
|
||
app_name = 'common' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.Welcome.as_view(), name='index'), | ||
url(r'^changelog$', views.Changelog.as_view(), name='changelog'), | ||
url(r'^session-filter/$', views.SessionFilter.as_view(), name='session-filter'), | ||
path('', views.Welcome.as_view(), name='index'), | ||
path('changelog/', views.Changelog.as_view(), name='changelog'), | ||
path('session-filter/', views.SessionFilter.as_view(), name='session-filter'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from bizwiz.customers import views | ||
|
||
app_name = 'customers' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.List.as_view(), name='list'), | ||
url(r'^create/$', views.Create.as_view(), name='create'), | ||
url(r'^edit/(?P<pk>[0-9]+)/$', views.Update.as_view(), name='update'), | ||
path('', views.List.as_view(), name='list'), | ||
path('create/', views.Create.as_view(), name='create'), | ||
path('edit/<int:pk>/', views.Update.as_view(), name='update'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from bizwiz.invoices import views | ||
|
||
app_name = 'invoices' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.List.as_view(), name='list'), | ||
url(r'^payable/$', views.List.as_view(), {'subset': 'payable'}, name='list_payable'), | ||
url(r'^taxable/$', views.List.as_view(), {'subset': 'taxable'}, name='list_taxable'), | ||
url(r'^create/$', views.Create.as_view(), name='create'), | ||
url(r'^edit/(?P<pk>[0-9]+)/$', views.Update.as_view(), name='update'), | ||
url(r'^print/invoice-(?P<number>[0-9]+).pdf$', views.Print.as_view(), name='print'), | ||
url(r'^sales/$', views.Sales.as_view(), name='sales'), | ||
url(r'^sales/(?P<year>\d{4})/$', views.List.as_view(), {'subset': 'year_paid'}, name='sales'), | ||
url(r'^sales/(?P<year>\d{4})/articles/$', views.ArticleSales.as_view(), name='sales_articles'), | ||
path('', views.List.as_view(), name='list'), | ||
path('payable/', views.List.as_view(), {'subset': 'payable'}, name='list_payable'), | ||
path('taxable/', views.List.as_view(), {'subset': 'taxable'}, name='list_taxable'), | ||
path('create/', views.Create.as_view(), name='create'), | ||
path('edit/<int:pk>/', views.Update.as_view(), name='update'), | ||
path('print/invoice-<int:number>.pdf', views.Print.as_view(), name='print'), | ||
path('sales/', views.Sales.as_view(), name='sales'), | ||
path('sales/<int:year>/$', views.List.as_view(), {'subset': 'year_paid'}, name='sales'), | ||
path('sales/<int:year>/articles/$', views.ArticleSales.as_view(), name='sales_articles'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from bizwiz.projects import views | ||
|
||
app_name = 'projects' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.List.as_view(), name='list'), | ||
url(r'^create/$', views.Create.as_view(), name='create'), | ||
url(r'^edit/(?P<pk>[0-9]+)/$', views.Update.as_view(), name='update'), | ||
path('', views.List.as_view(), name='list'), | ||
path('create/', views.Create.as_view(), name='create'), | ||
path('edit/<int:pk>/', views.Update.as_view(), name='update'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
|
||
from bizwiz.rebates import views | ||
|
||
app_name = 'rebates' | ||
|
||
urlpatterns = [ | ||
url(r'^$', views.Update.as_view(), {'subset': None}, name='update'), | ||
path('', views.Update.as_view(), {'subset': None}, name='update'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters