Changes between Initial Version and Version 1 of Ticket #28320, comment 1
- Timestamp:
- Jun 17, 2017, 11:40:13 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28320, comment 1
initial v1 1 1 Update: 2 2 3 It seems I managed to consistently insert the needed data into the DB before it gets cloned by subclassing the testrunner and running checks before `setup_databases()` runs. But that brought another problem I discovered, and which maybe could be fixed.3 It seems I managed to consistently insert the needed data into the DB before it gets cloned. But that brought another problem I discovered, and which maybe could be fixed. 4 4 5 So the first part I'm doing at startupis, I update my own permission models, which subclass the original django `Permission` model. Formerly, I had a function that would give a `ContentType` model of `django.contrib.auth`:5 So the first part of what I'm doing at `check` and `post_migrate` is, I update my own permission models, which subclass the original django `Permission` model. Formerly, I had a function that would give a `ContentType` model of `django.contrib.auth`: 6 6 {{{#!python 7 7 def _get_perm_contenttype(app_label: str, model_name: str):