@@ -67,11 +67,6 @@ def render_ballot_icon(doc, user):
6767 if not doc :
6868 return ""
6969
70- # FIXME: temporary backwards-compatibility hack
71- from ietf .doc .models import Document
72- if not isinstance (doc , Document ):
73- doc = doc ._draft
74-
7570 if not showballoticon (doc ):
7671 return ""
7772
@@ -158,29 +153,7 @@ def ballotposition(doc, user):
158153
159154
160155@register .filter
161- def my_position (doc , user ):
162- if not has_role (user , "Area Director" ):
163- return None
164- # FIXME: temporary backwards-compatibility hack
165- from ietf .doc .models import Document
166- if not isinstance (doc , Document ):
167- doc = doc ._draft
168-
169- ballot = doc .active_ballot ()
170- pos = "No Record"
171- if ballot :
172- changed_pos = doc .latest_event (BallotPositionDocEvent , type = "changed_ballot_position" , ad__user = user , ballot = ballot )
173- if changed_pos :
174- pos = changed_pos .pos .name ;
175- return pos
176-
177- @register .filter ()
178156def state_age_colored (doc ):
179- # FIXME: temporary backwards-compatibility hack
180- from ietf .doc .models import Document
181- if not isinstance (doc , Document ):
182- doc = doc ._draft
183-
184157 if doc .type_id == 'draft' :
185158 if not doc .get_state_slug () in ["active" , "rfc" ]:
186159 # Don't show anything for expired/withdrawn/replaced drafts
0 commit comments