from django import forms
from popup_field.views import PopupCRUDViewSet

from .models import *


class StoreForm(forms.ModelForm):
    class Meta:
        model = Store
        fields = ['name', 'address', 'telephone']


class StorePopupCRUDViewSet(PopupCRUDViewSet):
    model = Store
    form_class = StoreForm
    template_name_create = 'popup/create.html'
    template_name_update = 'popup/update.html'


