Skip to content

Commit 6496186

Browse files
committed
Redo the quickfix to the "Send and Post" button bug (mentioned in
issue ietf-tools#1308) so that we still do the validation correctly, but just always show the button (even if it's unusable) - Legacy-Id: 7416
1 parent bb029db commit 6496186

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

ietf/liaisons/forms.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ def set_organization_field(self):
310310
self.fields['organization'].choices = self.hm.get_all_incoming_entities()
311311

312312
def get_post_only(self):
313-
# Temporary fix - newer django plumbs when forms are validated differently - fail permissive for now
314-
return False
315313
from_entity = self.get_from_entity()
316314
if is_secretariat(self.user) or Role.objects.filter(person=self.person, group=from_entity.obj, name="auth"):
317315
return False

ietf/templates/liaisons/liaisonform.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ <h2>{{ fieldset.name }}</h2>
4444
{% if form.edit %}
4545
<input type="submit" value="Save" name="save" />
4646
{% else %}
47-
{% if not form.get_post_only %}
4847
<input type="submit" value="Send and Post" name="send" />
49-
{% endif %}
5048
<input type="submit" value="Post Only" name="post_only" />
5149
{% endif %}
5250
<div id="cancel-dialog" style="display: none;" title="Cancel {% if form.edit %}editing liaison{% else %}adding new liaison{% endif %}">

0 commit comments

Comments
 (0)