from django.forms import ModelForm
from .models import ProductsModel, LinesModel



""" PRODUCT FORM """
class ProductsModelForm(ModelForm):
    class Meta:
        model = ProductsModel
        #fields = ['pub_date', 'headline', 'content', 'reporter']
        exclude = ['datetime_created', 'created_by']


""" LINE FORM """
class LinesModelForm(ModelForm):
    class Meta:
        model = LinesModel
        exclude = ['datetime_created', 'created_by']

