| 1 |   | Hi, there is not an error or bug in my code. Django generates code that cannot run. My code runs fine. Everytime I generate migrations, I have to manually edit them so they are runnable. This is a bug in Django. | 
          
          
            |   | 1 | Hi, | 
          
          
            |   | 2 | With regards to the 2 solutions: | 
          
          
            |   | 3 | 1. My code runs fine. There is not an error or bug in my code. Django generates this line: | 
          
          
            |   | 4 | {{{ | 
          
          
            |   | 5 | bases=(core.djpp.permpp.PermissionsMixin_factory.<locals>.PermissionsMixin, models.Model, djpp.modelpp.NiceNameMixin), | 
          
          
            |   | 6 | }}} | 
          
          
            |   | 7 | Python will always fail the dot lookup of: `.PermissionsMixin_factory.<locals>.PermissionsMixin`+ | 
          
          
            |   | 8 | 2. Happens event if I don't squash migrations, i.e. rebuild them all from scratch. | 
          
          
            |   | 9 |  | 
          
          
            |   | 10 | Everytime I generate migrations, I have to manually edit them so they are runnable. This is a bug in Django. |