# Path: organizer/views.py
# class TagCreate(CreateView):
#     form_class = TagForm
#     model = Tag
# 
# class TagDelete(DeleteView):
#     model = Tag
#     success_url = reverse_lazy(
#         'organizer_tag_list')
# 
# class TagDetail(DetailView):
#     queryset = (
#         Tag.objects
#         .prefetch_related('startup_set')
#     )
# 
# class TagList(PageLinksMixin, ListView):
#     paginate_by = 5
#     model = Tag
# 
# class TagUpdate(UpdateView):
#     form_class = TagForm
#     model = Tag


from django.conf.urls import url
from ..views import (
    TagCreate, TagDelete, TagDetail, TagList,
    TagUpdate)


urlpatterns = [
    url(r'^$',
        TagList.as_view(),
        name='organizer_tag_list'),
    url(r'^create/$',
        TagCreate.as_view(),
        name='organizer_tag_create'),
    url(r'^(?P<slug>[\w\-]+)/$',
        TagDetail.as_view(),
        name='organizer_tag_detail'),
    url(r'^(?P<slug>[\w-]+)/delete/$',
        TagDelete.as_view(),
        name='organizer_tag_delete'),
    url(r'^(?P<slug>[\w\-]+)/update/$',

# Path: organizer/views.py
# class TagCreate(CreateView):
#     form_class = TagForm
#     model = Tag
# 
# class TagDelete(DeleteView):
#     model = Tag
#     success_url = reverse_lazy(
#         'organizer_tag_list')
# 
# class TagDetail(DetailView):
#     queryset = (
#         Tag.objects
#         .prefetch_related('startup_set')
#     )
# 
# class TagList(PageLinksMixin, ListView):
#     paginate_by = 5
#     model = Tag
# 
# class TagUpdate(UpdateView):
#     form_class = TagForm
#     model = Tag


# Path: organizer/urls/tag.py
from django.conf.urls import url
from ..views import (
    TagCreate, TagDelete, TagDetail, TagList,
    TagUpdate)



urlpatterns = [
    url(r'^$',
        TagList.as_view(),
        name='organizer_tag_list'),
    url(r'^create/$',
        TagCreate.as_view(),
        name='organizer_tag_create'),
    url(r'^(?P<slug>[\w\-]+)/$',
        TagDetail.as_view(),
        name='organizer_tag_detail'),
    url(r'^(?P<slug>[\w-]+)/delete/$',
        TagDelete.as_view(),
        name='organizer_tag_delete'),
    url(r'^(?P<slug>[\w\-]+)/update/$',

        TagUpdate.as_view(),