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

Hard abort when the serializer isn't valid #30

Closed RealOrangeOne closed 3 years ago

RealOrangeOne commented 3 years ago

If the serializer isn't valid, then the incoming data isn't valid, so we shouldn't make models using it.

Falling back to the raw data should be something explicit, so prevent data issues.

Some checks for serialized_data.is_valid have been removed, so might be easier to review ignoring whitespace.