#31021: migration doesn't work on multi database environment.
------------------------------+--------------------------------------
     Reporter:  haudoing      |                    Owner:  nobody
         Type:  Bug           |                   Status:  closed
    Component:  contrib.auth  |                  Version:  2.2
     Severity:  Normal        |               Resolution:  needsinfo
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------

Comment (by haudoing):

 Hello Felixxm,

 Thank you for your response. I found the actual reason cause this issue.
 I do start a clean Django project with the example you provide, it really
 works fine.
 But when I create a proxy model then migration stop at that script again.
 The script of the proxy model I made is as following

 {{{
 ```class EditorUser(User):

     class Meta:
         proxy = True

     def get_author_name(self):
         '''
         Returns:
             a name leading by last_name
         '''
         return '{}{}'.format(self.last_name, self.first_name)```
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31021#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.271314deb23bb1ece2b8674b7f38be51%40djangoproject.com.

Reply via email to