Changes between Initial Version and Version 1 of Ticket #28320, comment 1


Ignore:
Timestamp:
Jun 17, 2017, 11:40:13 AM (7 years ago)
Author:
László Károlyi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28320, comment 1

    initial v1  
    11Update:
    22
    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.
     3It 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.
    44
    5 So the first part I'm doing at startup 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`:
     5So 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`:
    66{{{#!python
    77def _get_perm_contenttype(app_label: str, model_name: str):
Back to Top