2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 23:51:08 +00:00

Rename Part.URL -> part.link

- Previous migration needed some tweaking to get it to run... because.. why?
- It seems to pass when running manage.py migrate but fails when running manage.py test
- Stumped on this one
This commit is contained in:
Oliver Walters
2020-04-06 11:16:39 +10:00
parent bd407cd226
commit b28487760a
10 changed files with 39 additions and 24 deletions

View File

@@ -60,11 +60,11 @@
{% endif %}
</td>
</tr>
{% if part.URL %}
{% if part.link %}
<tr>
<td><span class='fas fa-link'></span></td>
<td><b>{% trans "Link" %}</b></td>
<td><a href="{{ part.URL }}">{{ part.URL }}</a></td>
<td><b>{% trans "External Link" %}</b></td>
<td><a href="{{ part.link }}">{{ part.link }}</a></td>
</tr>
{% endif %}
{% if part.default_location %}

View File

@@ -72,14 +72,16 @@
<table class='table table-condensed'>
{% if part.IPN %}
<tr>
<td></td>
<td>{% trans "IPN" %}</td>
<td>{{ part.IPN }}</td>
</tr>
{% endif %}
{% if part.URL %}
{% if part.link %}
<tr>
<td>{% trans "URL" %}</td>
<td><a href="{{ part.URL }}">{{ part.URL }}</a></td>
<td><span class='fas fa-link'></span></td>
<td>{% trans "External Link" %}</td>
<td><a href="{{ part.link }}">{{ part.link }}</a></td>
</tr>
{% endif %}
<tr>