# Path: test_projects/django18/forthewing/views.py
# class ChickenWingsCreateView(CreateView):
# 
#     model = ChickenWings
#     fields = ['flavour']
#     success_url = reverse_lazy('ftw:created')
#     context_object_name = 'wings'
# 
# class ChickenWingsDeleteView(DeleteView):
# 
#     model = ChickenWings
#     success_url = reverse_lazy('ftw:deleted')
# 
#     def get_success_url(self):
#         return force_text(self.success_url)
# 
# class ChickenWingsDetailView(DetailView):
# 
#     model = ChickenWings
# 
# class ChickenWingsListView(ListView):
# 
#     queryset = ChickenWings.objects.order_by('-id')
#     context_object_name = 'chickenwings'
#     paginate_by = 10
# 
# class ChickenWingsUpdateView(UpdateView):
# 
#     model = ChickenWings
#     fields = ['flavour']
#     success_url = reverse_lazy('ftw:updated')


from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from .views import (
    ChickenWingsCreateView, ChickenWingsDeleteView, ChickenWingsDetailView,
    ChickenWingsListView, ChickenWingsUpdateView
)


urlpatterns = patterns('',  # NOQA

    url(r'^$', ChickenWingsListView.as_view(), name='list'),
    url(r'^create/$', ChickenWingsCreateView.as_view(), name='create'),
    url(r'^created/$', TemplateView.as_view(
        template_name='forthewing/chickenwings_created.html'), name='created'),
    url(r'^detail/(?P<pk>[0-9]*)$',
        ChickenWingsDetailView.as_view(), name='detail'),
    url(r'^update/(?P<pk>[0-9]*)$',

# Path: test_projects/django18/forthewing/views.py
# class ChickenWingsCreateView(CreateView):
# 
#     model = ChickenWings
#     fields = ['flavour']
#     success_url = reverse_lazy('ftw:created')
#     context_object_name = 'wings'
# 
# class ChickenWingsDeleteView(DeleteView):
# 
#     model = ChickenWings
#     success_url = reverse_lazy('ftw:deleted')
# 
#     def get_success_url(self):
#         return force_text(self.success_url)
# 
# class ChickenWingsDetailView(DetailView):
# 
#     model = ChickenWings
# 
# class ChickenWingsListView(ListView):
# 
#     queryset = ChickenWings.objects.order_by('-id')
#     context_object_name = 'chickenwings'
#     paginate_by = 10
# 
# class ChickenWingsUpdateView(UpdateView):
# 
#     model = ChickenWings
#     fields = ['flavour']
#     success_url = reverse_lazy('ftw:updated')


# Path: test_projects/django18/forthewing/urls.py
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
from .views import (
    ChickenWingsCreateView, ChickenWingsDeleteView, ChickenWingsDetailView,
    ChickenWingsListView, ChickenWingsUpdateView
)



urlpatterns = patterns('',  # NOQA

    url(r'^$', ChickenWingsListView.as_view(), name='list'),
    url(r'^create/$', ChickenWingsCreateView.as_view(), name='create'),
    url(r'^created/$', TemplateView.as_view(
        template_name='forthewing/chickenwings_created.html'), name='created'),
    url(r'^detail/(?P<pk>[0-9]*)$',
        ChickenWingsDetailView.as_view(), name='detail'),
    url(r'^update/(?P<pk>[0-9]*)$',

        ChickenWingsUpdateView.as_view(), name='update'),