Sith/stock/views.py

24 lines
544 B
Python
Raw Normal View History

2016-10-26 15:20:42 +00:00
from django.shortcuts import render
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
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):
"""
"""