You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dje/templates/admin/object_import.html
+18-6Lines changed: 18 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,15 @@ <h1 class="header-title">
30
30
<h5>Help for {{ importer.verbose_name|title }} Import:</h5>
31
31
<ulclass="mb-0">
32
32
{% if importer.formset and not importer.fatal_errors %}
33
-
<li><spanclass="badge text-bg-secondary">M</span> The {{ importer.verbose_name|title }} matches an already existing {{ importer.verbose_name|title }}. Nothing will be done for the row.</li>
33
+
<li>
34
+
<spanclass="badge text-bg-secondary">M</span>
35
+
The {{ importer.verbose_name|title }} matches an already existing {{ importer.verbose_name|title }}.
36
+
{% if importer.update_existing %}
37
+
Empty fields will be updated with import data.
38
+
{% else %}
39
+
Nothing will be done for the row.
40
+
{% endif %}
41
+
</li>
34
42
<li><spanclass="badge text-bg-success">A</span> The {{ importer.verbose_name|title }} will be added based on the input data</li>
35
43
<li><spanclass="badge text-bg-danger">E</span> The row contains at least one error</li>
36
44
<li><spanclass="badge text-bg-warning">W</span> The row is valid but should be manually reviewed</li>
@@ -41,11 +49,15 @@ <h5>Help for {{ importer.verbose_name|title }} Import:</h5>
41
49
<li>The character encoding of the input file needs to be "UTF-8"</li>
<strong>Yes:</strong> True, T, Yes, Y; <strong>No:</strong> False, F, No, N
48
57
</li>
58
+
{% if importer.verbose_name == "package" %}
59
+
<li>Note that a <strong>Package is uniquely defined in DejaCode by a combination of filename, download_url, and the six Package URL fields</strong> type, namespace, name, version, qualifiers, and subpath. You are not required to provide values in all of these fields (qualifiers and subpath are less commonly used) but if any of them are different from an existing similar package already in DejaCode, then the importer will perform an addition rather than a modification.</li>
60
+
{% endif %}
49
61
{% endif %}
50
62
</ul>
51
63
<divclass="text-center">
@@ -265,7 +277,7 @@ <h3>Step 1: Select your file</h3>
0 commit comments