From 6a755598b2595c4c38d61da5d2c7f608a3905cbe Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 28 May 2020 04:54:53 +0100 Subject: Moved classes to models_caves and fixed imports --- core/forms.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'core/forms.py') diff --git a/core/forms.py b/core/forms.py index b8d2e07..e8e620c 100644 --- a/core/forms.py +++ b/core/forms.py @@ -1,12 +1,16 @@ -from django.forms import ModelForm -from .models import Cave, Person, PersonExpedition, LogbookEntry, QM, Expedition, Entrance, CaveAndEntrance +import string +from datetime import date + import django.forms as forms +from django.forms import ModelForm from django.forms.models import modelformset_factory from django.contrib.admin.widgets import AdminDateWidget -import string -from datetime import date + from tinymce.widgets import TinyMCE +from troggle.core.models import Person, PersonExpedition, LogbookEntry, Expedition +from troggle.core.models_caves import Cave, QM, Entrance, CaveAndEntrance + class CaveForm(ModelForm): underground_description = forms.CharField(required = False, widget=forms.Textarea()) explorers = forms.CharField(required = False, widget=forms.Textarea()) -- cgit v1.2.3