summaryrefslogtreecommitdiffstats
path: root/expo/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'expo/forms.py')
-rw-r--r--expo/forms.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/expo/forms.py b/expo/forms.py
index 2225b0c..9573c18 100644
--- a/expo/forms.py
+++ b/expo/forms.py
@@ -1,5 +1,5 @@
from django.forms import ModelForm
-from models import Cave, Person, LogbookEntry
+from models import Cave, Person, LogbookEntry, QM
import django.forms as forms
from django.forms.formsets import formset_factory
from django.contrib.admin.widgets import AdminDateWidget
@@ -37,4 +37,15 @@ class LogbookEntryForm(ModelForm):
def __init__(self, *args, **kwargs):
super(LogbookEntryForm, self).__init__(*args, **kwargs)
- self.fields['text'].help_text=self.wikiLinkHints() \ No newline at end of file
+ self.fields['text'].help_text=self.wikiLinkHints()
+
+class QMsFoundInlineForm(ModelForm):
+ class Meta:
+ model = QM
+ exclude = 'ticked_off_by'
+
+ def __init__(self, *args, **kwargs):
+ super(QMsFoundInlineForm, self).__init__(*args, **kwargs)
+ #self.fields['number'].initial=nextQMinyear()#work on that one
+
+ \ No newline at end of file