Add points of interest
Do a bunch of refactoring in the process. Current display on homepage is a little shonky but that can be improved when there is something using it.
This commit is contained in:
@ -15,8 +15,8 @@ from dal import autocomplete
|
||||
|
||||
from apps.files.models import File
|
||||
|
||||
from .models import CaseStudy, CaseStudyDraft, SpatialRefSys
|
||||
from .forms import ShortCaseStudyForm, LongCaseStudyForm
|
||||
from .models import CaseStudy, CaseStudyDraft, SpatialRefSys, PointOfInterest
|
||||
from .forms import ShortCaseStudyForm, LongCaseStudyForm, PointOfInterest
|
||||
|
||||
|
||||
NOTIFY_MESSAGE = """
|
||||
@ -39,6 +39,14 @@ class Create(LoginRequiredMixin, TemplateView):
|
||||
template_name = "map/form-selector.html"
|
||||
|
||||
|
||||
class PointOfInterest(LoginRequiredMixin, CreateView):
|
||||
"""View for base case study form."""
|
||||
template_name = 'map/form-poi.html'
|
||||
success_url = '/case-study/create/success/'
|
||||
model = PointOfInterest
|
||||
form_class = PointOfInterest
|
||||
|
||||
|
||||
class BaseForm(LoginRequiredMixin, CreateView):
|
||||
"""View for base case study form."""
|
||||
template_name = 'map/form-case_study.html'
|
||||
|
Reference in New Issue
Block a user