Skip to content

on createmigrations, 'NoneType' object has no attribute '_meta'  #15

@andytwoods

Description

@andytwoods

Hi there,
nice package! I really like the concept.
I get the below when I run python manage.py makemigrations (Django 3.1).

  File "C:\Users\andytwoods\PycharmProjects\pubpubs\VE\lib\site-packages\django\contrib\admin\checks.py", line 351, in _check_field_spec_item
    not field.remote_field.through._meta.auto_created):
AttributeError: 'NoneType' object has no attribute '_meta'

when I change line 57 of mailauth.contrib.user.models.py from

    class Meta(AbstractUser.Meta):
        abstract = True

to

class Meta(AbstractUser.Meta):
    pass

the error goes away.

Can you foresee any issue with that change? I'll make a pull request.

cheers,
Andy.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions