Skip to content

Commit 5fae7d5

Browse files
committed
Fixing some template changes needed after the model surgery in changeset [186], and extending the attribute alignment to IprRfc and IprDraft models.
- Legacy-Id: 363 Note: SVN reference [186] has been migrated to Git commit 5f4d99a
1 parent 37552fe commit 5fae7d5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

ietf/ipr/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Admin:
190190

191191
class IprRfc(models.Model):
192192
ipr = models.ForeignKey(IprDetail, edit_inline=True, related_name='rfcs')
193-
rfc_number = models.ForeignKey(Rfc, db_column='rfc_number', raw_id_admin=True, core=True)
193+
document = models.ForeignKey(Rfc, db_column='rfc_number', raw_id_admin=True, core=True)
194194
def __str__(self):
195195
return "%s applies to RFC%04d" % ( self.ipr, self.rfc_number )
196196
class Meta:

ietf/templates/idindex/internetdraft_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2>{{ object.filename }}-{{ object.revision_display }}</h2>
1313
{% else %}
1414
<li> <b>IETF Working Group: <a href="http://www.ietf.org/html.charters/{{ object.group.acronym }}-charter.html">{{ object.group.name }}</a></li>
1515
{% endifequal %}
16-
<li> <b>I-D Title:</b> {{ object.id_document_name }}</li>
16+
<li> <b>I-D Title:</b> {{ object.title }}</li>
1717
<li> <b>I-D Status:</b> {{ object.status }}
1818
{% ifequal object.status.status "Replaced" %}
1919
(by <a href="/idindex/{{object.replaced_by.filename}}/">{{ object.replaced_by.filename }}</a>)

ietf/templates/ipr/details.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ <h4 class="ipr">The Patent Disclosure and Licensing Declaration Template for {{
258258
{% if ipr.rfclist %}
259259
<tr class="{% cycle row_parity %}"><td class="fixwidth">RFC Numbers:</td><td><b>{{ ipr.rfclist }}</b></td></tr>
260260
{% else %}
261-
{% for rfc in ipr.rfcs.all %}
262-
<tr class="{% cycle row_parity %}"><td class="fixwidth"><b>RFC {{ rfc.rfc_number.rfc_number }}:</b></td><td><b>"{{ rfc.rfc_number.rfc_name }}"</b></td></tr>
261+
{% for doc in ipr.rfcs.all %}
262+
<tr class="{% cycle row_parity %}"><td class="fixwidth"><b>RFC {{ doc.document.rfc_number }}:</b></td><td><b>"{{ doc.document.title }}"</b></td></tr>
263263
{% endfor %}
264264
{% endif %}
265265
{% if ipr.draftlist %}
266266
<tr class="{% cycle row_parity %}"><td class="fixwidth">I-D Filenames (draft-...):</td><td><b>{{ ipr.draftlist }}</b></td></tr>
267267
{% else %}
268-
{% for draft in ipr.drafts.all %}
269-
<tr class="{% cycle row_parity %}"><td class="fixwidth">Internet-Draft:</td><td><b>"{{ draft.document.id_document_name }}"<br />(<tt><big>{{ draft.document.filename }}-{{ draft.document.revision }}</big></tt>)</b></td></tr>
268+
{% for doc in ipr.drafts.all %}
269+
<tr class="{% cycle row_parity %}"><td class="fixwidth">Internet-Draft:</td><td><b>"{{ doc.document.title }}"<br />(<tt><big>{{ doc.document.filename }}-{{ doc.document.revision }}</big></tt>)</b></td></tr>
270270
{% endfor %}
271271
{% endif %}
272272
{% if ipr.other_designations %}

0 commit comments

Comments
 (0)