mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-12 12:59:24 +00:00
Addition of the stock parameter to the counter admin list
This commit is contained in:
@ -1,3 +1,24 @@
|
||||
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
|
||||
|
||||
# Create your views here.
|
||||
|
||||
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):
|
||||
"""
|
||||
|
||||
"""
|
Reference in New Issue
Block a user