2016-10-26 15:20:42 +00:00
|
|
|
from django.shortcuts import render
|
2016-11-08 17:14:41 +00:00
|
|
|
from django.views.generic import ListView, DetailView, RedirectView, TemplateView
|
|
|
|
from django.views.generic.edit import UpdateView, CreateView, DeleteView, ProcessFormView, FormMixin
|
2016-10-26 15:20:42 +00:00
|
|
|
|
2016-11-08 17:14:41 +00:00
|
|
|
|
|
|
|
from stock.models import Stock
|
|
|
|
|
|
|
|
class StockMain(DetailView):
|
|
|
|
"""
|
|
|
|
The stock view for the counter owner
|
|
|
|
"""
|
|
|
|
model = Stock
|
|
|
|
template_name = 'stock/stock_main.jinja'
|
|
|
|
pk_url_kwarg = "stock_id"
|
|
|
|
|
|
|
|
class StockCreateView(CreateView):
|
|
|
|
"""
|
|
|
|
docstring for StockCreateView
|
|
|
|
"""
|
|
|
|
|
|
|
|
class StockItemCreateView(CreateView):
|
|
|
|
"""
|
|
|
|
|
|
|
|
"""
|