Changes between Initial Version and Version 1 of Ticket #29780, comment 2


Ignore:
Timestamp:
Sep 21, 2018, 11:16:51 AM (6 years ago)
Author:
Javier Buzzi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29780, comment 2

    initial v1  
    1 Looks like the tests all passed. I have an issue with it though, how to really test this? By the time the tests run the `UserChangeForm` has already been executed and the metaclass already did its thing so no matter how much you change the `AUTH_USER_MODEL` nothing will change.
     1Looks like the tests all passed. I have an issue with it though, how to really test this? By the time the tests run the `UserChangeForm` has already been executed and the metaclass already did its thing so no matter how much you change the `AUTH_USER_MODEL` nothing will change; I thought about making `get_user_model()` lazy.. but that could introduce further complications. I suppose thats why this was like this to begin with. Can anyone shed some light?
Back to Top