Closed shacker closed 5 years ago
I’ll start testing on this later today.
Your notes help, thanks for working this up.
Sent from my iPhone
On Mar 10, 2019, at 11:37 PM, Scot Hacker notifications@github.com wrote:
Per request in #37, this provides the ability to import tasks via specifically formatted CSV. See the new documentation section for usage notes. Base your imports off the format provided in todo/data/import_example.csv.
This is currently in beta test and all feedback is welcome. Code review welcome here as well.
You can view, comment on, or merge this pull request online at:
https://github.com/shacker/django-todo/pull/51
Commit Summary
Bare start on CSV support Move core of CSV importer to operations More validations, break out validation function Validate dates and TaskList; convert errors to list of dictionaries Finish upsert code, and documentation Print msgs from the mgmt command, not the operations module Handle BOM marks Handle both in-memory and local file objects Update readme Working browser-upload view Bail on incorrect headers Fix default values and finish example spreadsheet Change column order, update docs Update index.md for RTD File Changes
M README.md (48) M docs/index.md (52) A todo/data/import_example.csv (4) A todo/management/commands/import_csv.py (56) A todo/operations/init.py (0) A todo/operations/csv_importer.py (185) A todo/templates/todo/import_csv.html (85) M todo/urls.py (5) M todo/views/init.py (1) A todo/views/import_csv.py (22) Patch Links:
https://github.com/shacker/django-todo/pull/51.patch https://github.com/shacker/django-todo/pull/51.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hey @multun If you're still interested/willing in helping me work out the notes you had wrt receiving the CSV file vs stream now that this has landed, would still welcome a PR. But it works, so no big deal if not. Thanks.
Per request in #37, this provides the ability to import tasks via specifically formatted CSV. See the new documentation section for usage notes. Base your imports off the format provided in
todo/data/import_example.csv
.This is currently in beta test and all feedback is welcome. Code review welcome here as well.