-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix consultation delete, get rid of
SearchableAssociatedFiles
The `SearchableAssociatedFiles` mixin was ultimately causing more issues than benefits. Accidental, not necessary complexity. We are better of getting rid of it. KISS 1) First of all, the observer never quite worked because of using associated in a Mixin. 2) Secondly, it's unlikely we'll have many many models with files to search in the future, so the benefits of having this mixin are not so great. 3) Thirdly, this was also non-trivial for type checking. Also fixed delete consultation with files / comments by adding `ondelete='CASCADE')` to the Foreignkey.
- Loading branch information
1 parent
ba0d4f3
commit fe66926
Showing
15 changed files
with
287 additions
and
497 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
This file was deleted.
Oops, something went wrong.
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.