Commit Graph

463 Commits

Author SHA1 Message Date
Bojan Mihelac 5cfbfe5b83 Preparing release 1.2.0 2019-01-10 08:36:01 +01:00
Bojan Mihelac 596a4f5b54 refactor: do not use mutable arguments 2018-12-03 16:06:26 +01:00
Andy Babic bd5ce92d05 feat: Better surfacing of validation errors in UI / optional model
instance validationA (#852)

Fixes: #64, #176, #415, #601
2018-12-03 15:24:04 +01:00
Bojan Mihelac baa65746bb
Merge branch 'master' into simplify 2018-11-05 09:05:13 +01:00
Bojan Mihelac dfa80579e4
Merge pull request #857 from jdufresne/all-pythons
Remove workaround for older Pythons
2018-11-05 09:04:00 +01:00
Bojan Mihelac eef0922e39
Merge branch 'master' into all-dj 2018-11-05 09:03:19 +01:00
Bojan Mihelac dc4d6d5c05
Merge pull request #860 from jdufresne/ws
Trim trailing white space throughout the project
2018-11-05 08:59:38 +01:00
Bojan Mihelac 61d253d0ed
Merge pull request #861 from jdufresne/unused-import
Clean up unused imports
2018-11-05 08:59:12 +01:00
Jon Dufresne 9df6d8d66d Update URLs to use https:// (#863) 2018-11-05 08:57:43 +01:00
Jon Dufresne c8daa20c7e Clean up unused imports 2018-11-04 17:28:57 -08:00
Jon Dufresne f84f3d486f Trim trailing white space throughout the project
Many editors clean up trailing white space on save. By removing it all
in one go, it helps keep future diffs cleaner by avoiding spurious white
space changes on unrelated lines.
2018-11-04 17:20:26 -08:00
Jon Dufresne 5180a422a5 Remove workaround for older unsupported Djangos
django.utils.encoding.force_text is available on all supported Djangos.
Can remove workaround to simplify the imports.
2018-11-04 17:09:42 -08:00
Jon Dufresne 6ae408c276 Remove workaround for older Pythons
importlib.import_module is available since Python 2.7.
2018-11-04 16:52:54 -08:00
Jon Dufresne 3746b20348 Simplify TMP_STORAGE_CLASS importing
Reuse Django's import_string(); avoid reimplementing it.
2018-11-04 16:47:48 -08:00
Ania Warzecha c4c0664418 fix: Change logging level (#832) 2018-10-05 08:31:53 +02:00
Bojan Mihelac 55e96c3d82
Merge pull request #842 from akulakov/patch-1
Changed `get_instance()` return val
2018-10-02 09:36:52 +02:00
Bojan Mihelac e3ba54249f Back to development: 1.1.1 2018-10-02 09:26:28 +02:00
Bojan Mihelac 9ded69edb1 Preparing release 1.1.0 2018-10-02 09:26:01 +02:00
andrei kulakov 0648e2a554
Changed `get_instance()` return val
When `import_id_fields` is empty, `get_instance()` should return None. Previously it would return an object if queryset contained a single object -- qs.get() with no args returns an obj for queryset of length=1.
2018-09-25 12:30:26 -04:00
Bojan Mihelac 54232db4a5
fix: Django2.1 ImportExportModelAdmin export (#797) (#819) 2018-08-09 14:43:39 +02:00
Dr. Shubham Dipt 9007be3910 JSONWidget for jsonb fields (#803)
* Update Widgets.py with JSONWidget

JSONWidget can be helpful in all the cases where jsonb is saved in the PostgreSQL database.

* Update api_widgets.rst

* Added tests for JSONWidget
2018-07-20 09:36:54 +02:00
Christophe Baldy 2180b14944 Add ExportActionMixin (#809)
Transform the ExportActionModelAdmin class into a Mixin
2018-07-20 09:30:10 +02:00
Fata Nugraha e633f9deb1 Add Import Export Permissioning #608 (#804)
* Add safeguard permission to admin

* remove button if not authorized

* Add Author

* fix tests

* add more tests

* Update docs
2018-07-20 09:28:15 +02:00
Toivo Mattila 816b49c23a write_to_tmp_storage() for import_action() (#781)
* Function to handle writing data for import_action
* Updated AUTHORS
2018-06-28 14:46:23 +02:00
Manel Clos 622a625387 follow relationships on ForeignKeyWidget 2018-06-28 11:12:33 +02:00
Kunal Khandelwal 5a7c35518b added unicode support for TSV for pytjhon 2 2018-06-25 17:12:59 +05:30
Anthony Monthe edc18e7653 Added ExportViewMixin (#692)
* Created ExportViewMixin

* Added ExportViewMixin tests

Added VIM files to .gitignore

Django<1.9 fix

Django 2.0 Fix

Splitted View behaviors

Added ExportMixinView
2018-05-31 18:56:56 +02:00
Bojan Mihelac 65416fbcef Back to development: 1.0.2 2018-05-17 16:53:54 +02:00
Bojan Mihelac 57ff0f5766 Preparing release 1.0.1 2018-05-17 16:50:23 +02:00
Andrei Loskutov 7045e39425 Make deep copy of fileds from class attr to instance attr (#550)
* Make deep copy of fileds from class attr to instance attr

The fields resource class attribute is the *class-wide* definition of
fields. Because a particular *instance* of the class might want to
alter self.fields, we create self.fields here by copying cls.fields.
Instances should always modify self.fields; they should not modify
cls.fields.

* Update test for resource fields

Test checks that resource instance *fields* attr doesn't refer to attr *fields* of resource class
2018-05-17 16:37:46 +02:00
KenyaDonDraper 748a460366 Fix #612: NumberWidget.is_empty() should strip the value if string type (#613)
* Strip the value (if string type) before the boolean check in NumberWidget.is_empty() - see #612
* Add tests for cleaning empty string for NumberWidgets - see #612
2018-05-17 16:28:48 +02:00
Bojan Mihelac 91561b8176 Merge branch 'fix-orderby' of https://github.com/pacotole/django-import-export into pacotole-fix-orderby 2018-05-17 16:15:56 +02:00
Bojan Mihelac eddcacf21a
Fix #713: last day isn't included in results qs (#779) 2018-05-17 16:09:54 +02:00
lorenzomorandini 2acba19b76 fix: warning U mode is deprecated in python 3 (#776) 2018-05-17 15:38:14 +02:00
dfirst 87b0189080 refactor: easier overridding widgets and default field (#769)
make default resource field as resource class attr, add resource widgets map
2018-05-17 15:36:15 +02:00
Bojan Mihelac 5940bf5395
Merge pull request #719 from frnhr/action_form_on_grappelli
custom js for action form also handles grappelli
2018-03-01 09:55:38 +01:00
Bojan Mihelac 16af9fd033
Merge pull request #732 from mgrdcm/app_label
Use 'verbose_name' in breadcrumbs to match Django default.
2018-03-01 09:19:15 +01:00
Bojan Mihelac ce344efb0f
Merge pull request #746 from kimetrica/745-custom-diff-classes
Add Resource.get_diff_class() - fixes #745
2018-03-01 09:06:33 +01:00
Marcin Popławski 4d3c9f22d3 Fix and add polish translation (#747) 2018-03-01 09:01:23 +01:00
Roger Hunwicks b6d9d32b90 Restore raise_errors to before_import - see #399 2018-02-27 08:34:56 +02:00
Roger Hunwicks 33fd5e9052 Add Resource.get_diff_class() - fixes #745 2018-02-22 18:45:06 +02:00
Greg Kaleka 1f0a3f0e5a
Edit docblock for ForeignKeyWidget
Adds import statements to the example in the ForeignKeyWidget docblock.
2018-02-20 13:09:57 -08:00
Bojan Mihelac bddd494503 Back to development: 1.0.1 2018-02-13 09:49:47 +01:00
Bojan Mihelac 690f126e57 Preparing release 1.0.0 2018-02-13 09:49:01 +01:00
Dan Moore 4db2615059 Use 'verbose_name' in breadcrumbs to match Django default. 2018-01-28 00:11:47 -05:00
Dan Moore 87afec415b Merge branch 'master' of https://github.com/django-import-export/django-import-export into require-django-1-8 2018-01-27 23:47:59 -05:00
Bojan Mihelac 318208cddd Back to development: 0.7.1 2018-01-17 08:06:23 +01:00
Bojan Mihelac 7eb60565d9 Preparing release 0.7.0 2018-01-17 08:05:54 +01:00
Fran Hrženjak 70f236f36d
custom js for action form also handles grappelli 2017-12-29 04:07:52 +01:00
Serhiy Zahoriya 0d08f30468
Merge branch 'master' into master 2017-12-28 21:56:15 +02:00