django-spreadsheets 1.2.0__tar.gz → 1.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/PKG-INFO +1 -1
- django_spreadsheets-1.2.1/django_spreadsheets/__init__.py +1 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/templates/spreadsheets/wizard.html +2 -1
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/views.py +1 -4
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/pyproject.toml +2 -2
- django_spreadsheets-1.2.0/django_spreadsheets/__init__.py +0 -1
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/LICENSE +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/README.md +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/admin.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/apps.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/autodiscover.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/base_config.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/conf/__init__.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/conf/settings.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/constants.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/errors.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/exceptions.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/exporter.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/forms.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/importer.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/locale/fr/LC_MESSAGES/django.po +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/registry.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/shortcuts.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/templates/spreadsheets/base.html +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/templates/spreadsheets/done.html +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/templates/spreadsheets/export_index.html +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/templates/spreadsheets/import_index.html +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/urls.py +0 -0
- {django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/validation.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.1"
|
|
@@ -36,9 +36,10 @@
|
|
|
36
36
|
|
|
37
37
|
{{ wizard.management_form }}
|
|
38
38
|
|
|
39
|
-
{% if wizard.steps.current == "match" %}
|
|
39
|
+
{% if wizard.steps.current == "match" and importer.match_errors %}
|
|
40
40
|
<h2>{% translate "Unknown values" %}</h2>
|
|
41
41
|
{% endif %}
|
|
42
|
+
|
|
42
43
|
<fieldset class="module spreadsheet-module">
|
|
43
44
|
{% for field in wizard.form %}
|
|
44
45
|
<div class="form-row field-{{ field.html_name }}">
|
|
@@ -6,9 +6,7 @@ from django.apps import apps
|
|
|
6
6
|
from django.conf import settings
|
|
7
7
|
from django.contrib import admin, messages
|
|
8
8
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
9
|
-
from django.core.exceptions import ValidationError
|
|
10
9
|
from django.core.files.storage import FileSystemStorage
|
|
11
|
-
from django.db import DataError
|
|
12
10
|
from django.http import HttpResponse, HttpResponseRedirect
|
|
13
11
|
from django.shortcuts import redirect
|
|
14
12
|
from django.urls import reverse
|
|
@@ -24,7 +22,6 @@ from formtools.wizard.views import SessionWizardView
|
|
|
24
22
|
|
|
25
23
|
# Local application / specific library imports
|
|
26
24
|
from .conf import settings as local_settings
|
|
27
|
-
from .exceptions import ImportValueNotFoundException
|
|
28
25
|
from .exporter import Exporter
|
|
29
26
|
from .forms import ConfigChoiceForm, FileForm, MatchForm
|
|
30
27
|
from .importer import Importer
|
|
@@ -161,7 +158,7 @@ class BaseImportModelWizardView(
|
|
|
161
158
|
|
|
162
159
|
try:
|
|
163
160
|
self.config_class().update_database(self.importer.values)
|
|
164
|
-
except
|
|
161
|
+
except Exception as e:
|
|
165
162
|
message = getattr(e, "message", str(e))
|
|
166
163
|
# On errors, we return to the first step
|
|
167
164
|
messages.error(self.request, message)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "django_spreadsheets"
|
|
3
|
-
version = "1.2.
|
|
3
|
+
version = "1.2.1"
|
|
4
4
|
description = "Import from and export to XLSX files with data validation."
|
|
5
5
|
authors = ["Kapt dev team <dev@kapt.mobi>"]
|
|
6
6
|
license = "BSD-3-Clause"
|
|
@@ -25,7 +25,7 @@ isort = "~5.9.3"
|
|
|
25
25
|
djhtml = "~1.4.10"
|
|
26
26
|
|
|
27
27
|
[build-system]
|
|
28
|
-
requires = ["poetry-core>=1.2.
|
|
28
|
+
requires = ["poetry-core>=1.2.1", "setuptools"]
|
|
29
29
|
build-backend = "poetry.core.masonry.api"
|
|
30
30
|
|
|
31
31
|
[tool.isort]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/conf/__init__.py
RENAMED
|
File without changes
|
{django_spreadsheets-1.2.0 → django_spreadsheets-1.2.1}/django_spreadsheets/conf/settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|