Re: Django 2.2 creates multiple migration files when AbstractUser is used

2019-05-02 Thread douglas indumwa
Please answer all the questions in SECTION A and one question of your choice in SECTION B. SECTION A 1. Sort the below dictionary/array key using Javascript and output the information in key:value format on a Polymer interface. The entire numeric key should be sorted in an ascending order and all

Re: Django 2.2 creates multiple migration files when AbstractUser is used

2019-05-02 Thread Simon Charette
Hey David, Could you try explicitly defining an objects manager on your User model and see it if helps. e.g. from django.contrib.auth.models import UserManager class User(AbstractUser): ... # fields objects = UserManager() I'm also having trouble reproducing locally though. Simon Le

Django 2.2 creates multiple migration files when AbstractUser is used

2019-05-02 Thread Daviddd
Dear All, Empty DB, no migration is applied, I have a core app like: #core.models class Institute(models.Model): phone_regex = RegexValidator(regex=r'^\+?1?\d{9,15}$', message= institute_phone_help_text) name = models.CharField(_('name'), max_length=255) description = models.TextFie