# -*- coding: utf-8 -*-
from django import forms
from django.forms import ModelForm
from .models import *

        
   

class MenuForm(ModelForm):
    class Meta:
        model = Menu
        fields = '__all__'
        widgets = {
            'parent': forms.HiddenInput(),
            'companys_only':forms.HiddenInput(),
        }
           
        
#2021-09-11
class CompanyMenuForm(ModelForm):
    class Meta:
        model = CompanyMenu
        fields = '__all__'
        widgets = {
            'parent': forms.HiddenInput(),    
            'company':forms.HiddenInput(),  
        }




