Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models: Align with output of inspectdb
Changes: - Upgrade to Django 3.2 (JSONField) - ProgressMonitorDataset.dataset: Change to OneToOneField and update get_state, get_phase, get_size accordingly - Add models: ExchangeRates, FieldLevelCheckExamples, ResourceLevelCheckExamples Fixes: - Fix `unique_together` to reference fields, not columns - Set max_length=255 instead of max_length=-1 Cleanup: - FieldLevelCheck, ResourceLevelCheck: Remove duplicate `data_item` field - Import `models` instead of specific fields - Re-order models, fields and keyword arguments - Remove default `db_column`, `to_field` and `blank` values - Remove optional quotes around class names - Remove extra newlines
- Loading branch information
1 parent
bf4f120
commit 0c7448e
Showing
2 changed files
with
145 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters