from django import forms
# 引入文章模型
from .models import Ownership

# 写文章的表单类
class StoragePostForm(forms.ModelForm):
    class Meta:
        # 指明数据模型来源
        model = Ownership
        # 定义表单包含的字段
        fields = ('quantity', 'price', 'itemname', 'storename')