Handle updates better in guest import
Introduces the --update-existing option, set to False by default. Thie option controls whether or not we want to update already imported information with the info from the file. This is usually not what we want since sponsors may have changed the end dates for already imported roles after the previous import. We choose to leave it as an option so that we CAN overwrite information if we really want. This commit also removes the ignore-id-req option since that only makes matter worse than not importing the person.
parent
fe27cff5
No related branches found
No related tags found
Showing
- greg/management/commands/import_guests.py 20 additions, 18 deletionsgreg/management/commands/import_guests.py
- greg/tests/conftest.py 2 additions, 2 deletionsgreg/tests/conftest.py
- greg/tests/management/fixtures/guests.json 79 additions, 0 deletionsgreg/tests/management/fixtures/guests.json
- greg/tests/management/fixtures/guests2.json 54 additions, 0 deletionsgreg/tests/management/fixtures/guests2.json
- greg/tests/management/test_import_guests.py 71 additions, 0 deletionsgreg/tests/management/test_import_guests.py
- greg/tests/management/test_import_sponsors_from_cerebrum.py 5 additions, 5 deletionsgreg/tests/management/test_import_sponsors_from_cerebrum.py
- greg/tests/models/test_organizational_unit.py 1 addition, 1 deletiongreg/tests/models/test_organizational_unit.py
greg/tests/management/fixtures/guests.json
0 → 100644
greg/tests/management/fixtures/guests2.json
0 → 100644
greg/tests/management/test_import_guests.py
0 → 100644
Please register or sign in to comment