Added missing fields to event form and detail

This commit is contained in:
tomtom5152
2015-01-28 16:49:10 +00:00
parent 1c29b9275d
commit 29edcebb88
3 changed files with 10 additions and 1 deletions

View File

@@ -84,4 +84,4 @@ class EventForm(forms.ModelForm):
model = models.Event
fields = ['is_rig', 'name', 'venue', 'start_date', 'start_time', 'end_date',
'end_time', 'meet_at', 'access_at', 'description', 'notes', 'mic',
'person', 'organisation', 'dry_hire', 'based_on', 'checked_in_by']
'person', 'organisation', 'dry_hire', 'based_on', 'checked_in_by', 'status']

View File

@@ -67,6 +67,9 @@
<dt>Event MIC</dt>
<dd>{{ event.mic.name }}</dd>
<dt>Status</dt>
<dd>{{ event.get_status_display }}</dd>
<dd>&nbsp;</dd>
{% if event.is_rig %}
@@ -101,6 +104,11 @@
</a>
{% endif %}
</dd>
{% if event.dry_hire %}
<dt>Checked In By</dt>
<dd>{{ object.checked_in_by.name }}</dd>
{% endif %}
</dl>
</div>
</div>

View File

@@ -1,3 +1,4 @@
from django.core.exceptions import PermissionDenied
from django.http.response import HttpResponseRedirect
from django.http import HttpResponse
from django.core.urlresolvers import reverse_lazy