Ticket : fix Liaison Add CSRF token error and missing Post and Send button. ready for merge

- Legacy-Id: 7236
This commit is contained in:
Ryan Cross 2014-02-13 19:31:12 +00:00
parent b9552a9331
commit ba6d31fd27
2 changed files with 3 additions and 1 deletions
ietf
liaisons
templates/liaisons

View file

@ -310,6 +310,8 @@ class IncomingLiaisonForm(LiaisonForm):
self.fields['organization'].choices = self.hm.get_all_incoming_entities()
def get_post_only(self):
# Temporary fix - newer django plumbs when forms are validated differently - fail permissive for now
return False
from_entity = self.get_from_entity()
if is_secretariat(self.user) or Role.objects.filter(person=self.person, group=from_entity.obj, name="auth"):
return False

View file

@ -22,7 +22,7 @@ This page depends on Javascript being enabled to work properly. Please enable Ja
</ul>
{% endif %}
{{ form }}
{% include "liaisons/liaisonform.html" %}
{% endblock %}