Skip to content

Commit 44c7876

Browse files
committed
Don't add fake expire notices with the new schema
- Legacy-Id: 3808
1 parent 445b968 commit 44c7876

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idrfc/views_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _get_history(doc, versions):
208208
v = dict(v) # copy it, since we're modifying datetimes later
209209
v['is_rev'] = True
210210
results.insert(0, v)
211-
if doc.is_id_wrapper and doc.draft_status == "Expired" and doc._draft.expiration_date:
211+
if not settings.USE_DB_REDESIGN_PROXY_CLASSES and doc.is_id_wrapper and doc.draft_status == "Expired" and doc._draft.expiration_date:
212212
results.append({'is_text':True, 'date':doc._draft.expiration_date, 'text':'Draft expired'})
213213
if not settings.USE_DB_REDESIGN_PROXY_CLASSES and doc.is_rfc_wrapper:
214214
text = 'RFC Published'

0 commit comments

Comments
 (0)