wagtail-nest / wagtail-airtable

Airtable import and export support for Wagtail pages and Django models.
BSD 3-Clause "New" or "Revised" License
49 stars 15 forks source link

create_or_update() method #2

Open KalobTaulien opened 4 years ago

KalobTaulien commented 4 years ago

In mixins.py there is AirtableMixin.create_record() and AirtableMixin.update_record().

These should ideally be merged together. Originally there were valid reasons for keeping these separate, but after further development they can merged.

Merging the two methods into a create_or_update() method would reduce logic in AirtableMixin.save() and we could likely remove some of the unit tests and merge those together as well.