Skip to content

Commit f051f64

Browse files
committed
Fixing some renaming breakage.
- Legacy-Id: 479
1 parent 7075fe6 commit f051f64

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

ietf/ipr/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class IprDetail(models.Model):
111111
update_notified_date = models.DateField(null=True, blank=True)
112112

113113
def __str__(self):
114-
return self.document_title
114+
return self.title
115115
def get_absolute_url(self):
116116
return "/ipr/ipr-%s" % self.ipr_id
117117
class Meta:

ietf/ipr/new.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ def clean_submitter(self):
177177
data["comply"] = "1"
178178

179179
if type == "general":
180-
data["document_title"] = """%(legal_name)s's General License Statement""" % data
180+
data["title"] = """%(legal_name)s's General License Statement""" % data
181181
if type == "specific":
182182
data["ipr_summary"] = get_ipr_summary(data)
183-
data["document_title"] = """%(legal_name)s's Statement about IPR related to %(ipr_summary)s""" % data
183+
data["title"] = """%(legal_name)s's Statement about IPR related to %(ipr_summary)s""" % data
184184
if type == "third-party":
185185
data["ipr_summary"] = get_ipr_summary(data)
186-
data["document_title"] = """%(submitter)s's Statement about IPR related to %(ipr_summary)s belonging to %(legal_name)s""" % data
186+
data["title"] = """%(submitter)s's Statement about IPR related to %(ipr_summary)s belonging to %(legal_name)s""" % data
187187

188188
for src in ["hold", "ietf"]:
189189
if "%s_contact_is_submitter" % src in data:

ietf/templates/ipr/details.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<table cellpadding=0 cellspacing=0 border=0>
1515
<tr>
1616
<td width="720" align="center">
17-
<h3>{{ ipr.document_title }}</h3>
17+
<h3>{{ ipr.title }}</h3>
1818
</td>
1919
</tr>
2020
</table>
@@ -54,9 +54,9 @@ <h3>{{ ipr.document_title }}</h3>
5454
<br>
5555
This IPR disclosure updates IPR disclosure ID #{{ item.updated.ipr_id }},
5656
{% ifequal item.status_to_be 1 %}
57-
"<a href="{% url ietf.ipr.views.show item.updated.ipr_id %}">{{ item.updated.document_title }}</a>".
57+
"<a href="{% url ietf.ipr.views.show item.updated.ipr_id %}">{{ item.updated.title }}</a>".
5858
{% else %}
59-
"{{ item.updated.document_title }}", which was removed at the request of the submitter.
59+
"{{ item.updated.title }}", which was removed at the request of the submitter.
6060
{% endifequal %}
6161
<br>
6262
</font>
@@ -68,9 +68,9 @@ <h3>{{ ipr.document_title }}</h3>
6868
<br>
6969
This IPR disclosure has been updated by IPR disclosure ID #{{ item.ipr.ipr_id }},
7070
{% ifequal item.status_to_be 1 %}
71-
"<a href="{% url ietf.ipr.views.show item.ipr.ipr_id %}">{{ item.ipr.document_title }}</a>".
71+
"<a href="{% url ietf.ipr.views.show item.ipr.ipr_id %}">{{ item.ipr.title }}</a>".
7272
{% else %}
73-
"{{ item.ipr.document_title }}", which was removed at the request of the submitter.
73+
"{{ item.ipr.title }}", which was removed at the request of the submitter.
7474
{% endifequal %}
7575
<br>
7676
</font>

ietf/templates/ipr/list_item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<td align="right">{{ ipr.ipr_id }}</td>
44
<td>
55
{% ifequal ipr.status 1 %}
6-
<a href="{% url ietf.ipr.views.show ipr.ipr_id %}">{{ ipr.document_title }}</a>
6+
<a href="{% url ietf.ipr.views.show ipr.ipr_id %}">{{ ipr.title }}</a>
77
{% else %}
8-
{{ ipr.document_title }}
8+
{{ ipr.title }}
99
<br>This IPR disclosure was removed at the request of the submitter.
1010
{% endifequal %}
1111
<br />

ietf/templates/ipr/search_doc_result.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h2>IPR Disclosures</h2></center>
1616
<tr valign="top" bgcolor="#dadada">
1717
<td width="100">{{ ipr.submitted_date }}</td>
1818
<td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
19-
<td><a href="{% url ietf.ipr.views.show ipr_id=ipr.ipr_id %}">"{{ ipr.document_title }}"</a></td>
19+
<td><a href="{% url ietf.ipr.views.show ipr_id=ipr.ipr_id %}">"{{ ipr.title }}"</a></td>
2020
</tr>
2121
{% endfor %}
2222

@@ -34,7 +34,7 @@ <h2>IPR Disclosures</h2></center>
3434
<tr valign="top">
3535
<td width="100">{{ ipr.submitted_date }}</td>
3636
<td width="90"><li>ID # {{ ipr.ipr_id }}</li></td>
37-
<td><a href="{% url ietf.ipr.views.show %}{{ ipr.ipr_id }}">"{{ ipr.document_title }}"</a></td>
37+
<td><a href="{% url ietf.ipr.views.show %}{{ ipr.ipr_id }}">"{{ ipr.title }}"</a></td>
3838
</tr>
3939
{% endfor %}
4040
{% else %}

0 commit comments

Comments
 (0)