-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Add multi-language
BlockTranslatedContent
in relation to `Blo…
…ck` (#1227) * feat: Add BlockTranslatedContent model and relate it to Block with a ManyToMany relationship * refactor: Migrate block content and associated models * refactor: Add `translated_content` as `ManyToMany` field of `Block` instead of on `BlockTranslatedContent` * feat: Warn user about missing translated contents * refactor: Remove hashtag, url, consent & language from block * refactor: Move warnings to remarks column * fix: Fix many tests after removing consent/url/hashtags from block model * doc: Update consent's doc string * fix: Fix minor test * fix: Fix remainder of tests * fix: Validating the model before saving the model and its relations results into errors as the validator looks for translated content using the FKs * refactor: Handle missing language in content * fix: Re-add Hooked ID * refactor(`BlockTranslatedContent`) Refactor `Block`-`BlockTranslatedContent` relationship to `ForeignKey` - Update Block model to use ForeignKey for translated_contents - Modify migrations to reflect new relationship - Adjust admin interface to handle inline editing of translated contents - Update related queries and methods to use new relationship structure * refactor: Use tabular inline for block translated content * fix: Fix border radius top left in markdown input * feat: Add all necessary fields for experiment translated content to its form * chore: Remove unnecessary print statement * fix: Add `BlockTranslatedContentInline` inline to `BlockAdmin` * fix: Create temporary fix for tabular inline headings appearing out of its h2 element See also: - theatlantic/django-nested-admin#261 - theatlantic/django-nested-admin#259 * chore: Incorporate latest version of `django-nested-admin` that includes fix for the tabular inline form's heading * refactor: Rename test to be more descriptive * refactor: Incorporate the migration of #1240
- Loading branch information
1 parent
1c7743a
commit 0204a9c
Showing
39 changed files
with
1,409 additions
and
853 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
Oops, something went wrong.