form_class=FeatureTypeForm)), name='feature-type-create'), url(r'^feature-types/update/(?P<pk>\d+)/?$', login_required( UpdateView.as_view( template_name='core/generic_form.html', queryset=FeatureTypeForm.Meta.model.objects.all(), form_class=FeatureTypeForm)), name='feature-type-update'), url(r'^feature-types/delete/(?P<pk>\d+)/?$', login_required(FeatureTypeDelete.as_view()), name='feature-type-delete'), # Map list url(r'^maps/?$', MapListView.as_view(queryset=Map.objects.all()), name='map-list'), url(r'^maps/delete/(?P<pk>\d+)/?$', login_required(MapDelete.as_view()), name='map-delete'), # Map CRUD Views url(r'^create/?$', login_required(create_update_map), name='map-create'), url(r'^update/(?P<pk>\d+)/?$', login_required(create_update_map), name='map-update'), # Layer CRUD Views url(r'^layers/?$', LayerListView.as_view(queryset=Layer.objects.all()), name='layer-list'),
# queryset=FeatureTypeForm.Meta.model.objects.all(), # form_class=FeatureTypeForm)), # name='feature-type-update'), url(r'^feature-types/update/(?P<pk>\d+)/?$', login_required(UpdateView.as_view(template_name='core/crispy_form.html', queryset=FeatureTypeForm.Meta.model.objects.all(), form_class=FeatureTypeForm)), name='feature-type-update'), url(r'^feature-types/delete/(?P<pk>\d+)/?$', login_required(FeatureTypeDelete.as_view()), name='feature-type-delete'), # Map list url(r'^maps/?$', MapListView.as_view(queryset=Map.objects.all()), name='map-list'), url(r'^maps/delete/(?P<pk>\d+)/?$', login_required(MapDelete.as_view()), name='map-delete'), # Map CRUD Views url(r'^create/?$', login_required(create_update_map), name='map-create'), url(r'^update/(?P<job_id>\d+)/(?P<map_id>\d+)/?$', login_required(create_update_map), name='map-update'),
login_required(CreateView.as_view(template_name='core/generic_form.html', form_class=FeatureTypeForm)), name='feature-type-create'), url(r'^feature-types/update/(?P<pk>\d+)/?$', login_required(UpdateView.as_view(template_name='core/generic_form.html', queryset=FeatureTypeForm.Meta.model.objects.all(), form_class=FeatureTypeForm)), name='feature-type-update'), url(r'^feature-types/delete/(?P<pk>\d+)/?$', login_required(FeatureTypeDelete.as_view()), name='feature-type-delete'), # Map list url(r'^maps/?$', MapListView.as_view(queryset=Map.objects.all()), name='map-list'), url(r'^maps/delete/(?P<pk>\d+)/?$', login_required(MapDelete.as_view()), name='map-delete'), # Map CRUD Views url(r'^create/?$', login_required(create_update_map), name='map-create'), url(r'^update/(?P<pk>\d+)/?$', login_required(create_update_map), name='map-update'),
BeaconLocationView, add_measurement, experiments_view, house_experiments_view, ) urlpatterns = [ url(r'^$', BeaconListView.as_view(), name='beacon-list'), url(r'^(?P<pk>\d+)/$', BeaconDetailView.as_view(), name='beacon-detail'), url(r'^(?P<pk>\d+)/edit/$', BeaconUpdateView.as_view(), name='beacon-edit'), url(r'^create/$', BeaconCreateView.as_view(), name='beacon-create'), url(r'^(?P<pk>\d+)/location/$', BeaconLocationView.as_view(), name='beacon-location'), url(r'^maps/$', MapListView.as_view(), name='map-list'), url(r'^maps/(?P<pk>\d+)/$', MapDetailView.as_view(), name='map-detail'), url(r'^maps/(?P<pk>\d+)/edit$', MapUpdateView.as_view(), name='map-edit'), url(r'^maps/create/$', MapCreateView.as_view(), name='map-create'), url(r'^nodes/$', NodeListView.as_view(), name='node-list'), url(r'^nodes/(?P<pk>\d+)/$', NodeDetailView.as_view(), name='node-detail'), url(r'^nodes/(?P<pk>\d+)/edit$', NodeUpdateView.as_view(), name='node-edit'), url(r'^nodes/create/$', NodeCreateView.as_view(), name='node-create'), url(r'^experiments/$', experiments_view, name='experiments'), url(r'^house-experiments/$', house_experiments_view, name='house-experiments'), url(r'^add_measurement/$', add_measurement), url(r'^myaccount/$',