diff options
Diffstat (limited to 'core/forms.py')
-rw-r--r-- | core/forms.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/forms.py b/core/forms.py index b091696..8265178 100644 --- a/core/forms.py +++ b/core/forms.py @@ -46,12 +46,12 @@ class EntranceForm(ModelForm): #underground_centre_line = forms.CharField(required = False, widget=TinyMCE(attrs={'cols': 80, 'rows': 10})) #notes = forms.CharField(required = False, widget=TinyMCE(attrs={'cols': 80, 'rows': 10})) #references = forms.CharField(required = False, widget=TinyMCE(attrs={'cols': 80, 'rows': 10})) - other_station = forms.CharField(required=False) # Trying to change this to a singl;e line entry - tag_station = forms.CharField(required=False) # Trying to change this to a singl;e line entry - exact_station = forms.CharField(required=False) # Trying to change this to a singl;e line entry - northing = forms.CharField(required=False) # Trying to change this to a singl;e line entry - easting = forms.CharField(required=False) # Trying to change this to a singl;e line entry - alt = forms.CharField(required=False) # Trying to change this to a singl;e line entry + other_station = forms.CharField(required=False) # Trying to change this to a single line entry + tag_station = forms.CharField(required=False) # Trying to change this to a single line entry + exact_station = forms.CharField(required=False) # Trying to change this to a single line entry + northing = forms.CharField(required=False) # Trying to change this to a single line entry + easting = forms.CharField(required=False) # Trying to change this to a single line entry + alt = forms.CharField(required=False) # Trying to change this to a single line entry class Meta: model = Entrance exclude = ("cached_primary_slug", "filename",) @@ -123,7 +123,7 @@ def getTripForm(expedition): html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 30})) def clean(self): - print dir(self) + print(dir(self)) if self.cleaned_data.get("caveOrLocation") == "cave" and not self.cleaned_data.get("cave"): self._errors["cave"] = self.error_class(["This field is required"]) if self.cleaned_data.get("caveOrLocation") == "location" and not self.cleaned_data.get("location"): |