# Path: tests/testapp/widgets/forms.py
# class PointFieldCreateForm(forms.ModelForm):
# 
#     class Meta:
#         model = PointField
#         fields = ("name", "location", "city")
#         widgets = {
#             'location': GooglePointFieldWidget,
#             'city': GooglePointFieldWidget,
#         }


from django.views.generic import TemplateView, FormView
from .forms import PointFieldCreateForm



class MapWidgetListView(TemplateView):
    template_name = "widgets/widget_list.html"


class PointFieldGoogleWidgetView(FormView):
    template_name = "widgets/google_point_widget.html"

# Path: tests/testapp/widgets/forms.py
# class PointFieldCreateForm(forms.ModelForm):
# 
#     class Meta:
#         model = PointField
#         fields = ("name", "location", "city")
#         widgets = {
#             'location': GooglePointFieldWidget,
#             'city': GooglePointFieldWidget,
#         }


# Path: tests/testapp/widgets/views.py
from django.views.generic import TemplateView, FormView
from .forms import PointFieldCreateForm




class MapWidgetListView(TemplateView):
    template_name = "widgets/widget_list.html"


class PointFieldGoogleWidgetView(FormView):
    template_name = "widgets/google_point_widget.html"

    form_class = PointFieldCreateForm