from django.conf.urls import patterns, url
from manager.apps.brand.views import BrandListView, BrandView
from manager.apps.brand.views import OwnerListView, OwnerView

urlpatterns = patterns(
    '',
    url(r'^brand$', BrandListView.as_view(), name='brandlist'),
    url(r'^brand/(?P<bsin>[1-9A-NP-Z]{6})', BrandView.as_view(), name='brand'),

    url(r'^owner$', OwnerListView.as_view(), name='ownerlist'),
    url(r'^owner/(?P<cd>[1-9]+)', OwnerView.as_view(), name='owner'),
)

from django.conf.urls import patterns, url
from manager.apps.brand.views import BrandListView, BrandView
from manager.apps.brand.views import OwnerListView, OwnerView

urlpatterns = patterns(
    '',
    url(r'^brand/$', BrandListView.as_view(), name='brandlist'),
    url(r'^brand/(?P<bsin>[1-9A-NP-Z]{6})', BrandView.as_view(), name='brand'),

    url(r'^owner/$', OwnerListView.as_view(), name='ownerlist'),
    url(r'^owner/(?P<cd>[1-9]+)', OwnerView.as_view(), name='owner'),
)

Fix Brand and Owner public links (missing / would get a 404 on brand/ and owner/)
Fix Brand and Owner public links (missing / would get a 404 on brand/ and owner/)

Also follow the same URL scheme as admin (which always have trailing
slash)
