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 5f4d99a36a
This commit is contained in:
parent
37552fe91f
commit
5fae7d56b2
|
@ -190,7 +190,7 @@ class IprNotification(models.Model):
|
|||
|
||||
class IprRfc(models.Model):
|
||||
ipr = models.ForeignKey(IprDetail, edit_inline=True, related_name='rfcs')
|
||||
rfc_number = models.ForeignKey(Rfc, db_column='rfc_number', raw_id_admin=True, core=True)
|
||||
document = models.ForeignKey(Rfc, db_column='rfc_number', raw_id_admin=True, core=True)
|
||||
def __str__(self):
|
||||
return "%s applies to RFC%04d" % ( self.ipr, self.rfc_number )
|
||||
class Meta:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{% else %}
|
||||
<li> <b>IETF Working Group: <a href="http://www.ietf.org/html.charters/{{ object.group.acronym }}-charter.html">{{ object.group.name }}</a></li>
|
||||
{% endifequal %}
|
||||
<li> <b>I-D Title:</b> {{ object.id_document_name }}</li>
|
||||
<li> <b>I-D Title:</b> {{ object.title }}</li>
|
||||
<li> <b>I-D Status:</b> {{ object.status }}
|
||||
{% ifequal object.status.status "Replaced" %}
|
||||
(by <a href="/idindex/{{object.replaced_by.filename}}/">{{ object.replaced_by.filename }}</a>)
|
||||
|
|
|
@ -258,15 +258,15 @@
|
|||
{% if ipr.rfclist %}
|
||||
<tr class="{% cycle row_parity %}"><td class="fixwidth">RFC Numbers:</td><td><b>{{ ipr.rfclist }}</b></td></tr>
|
||||
{% else %}
|
||||
{% for rfc in ipr.rfcs.all %}
|
||||
<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>
|
||||
{% for doc in ipr.rfcs.all %}
|
||||
<tr class="{% cycle row_parity %}"><td class="fixwidth"><b>RFC {{ doc.document.rfc_number }}:</b></td><td><b>"{{ doc.document.title }}"</b></td></tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if ipr.draftlist %}
|
||||
<tr class="{% cycle row_parity %}"><td class="fixwidth">I-D Filenames (draft-...):</td><td><b>{{ ipr.draftlist }}</b></td></tr>
|
||||
{% else %}
|
||||
{% for draft in ipr.drafts.all %}
|
||||
<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>
|
||||
{% for doc in ipr.drafts.all %}
|
||||
<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>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if ipr.other_designations %}
|
||||
|
|
Loading…
Reference in a new issue