mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
24 lines
544 B
Python
24 lines
544 B
Python
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
|
|
|
|
|
|
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):
|
|
"""
|
|
|
|
""" |