AttributeError: type object has no attribute 'name' code example Example: 'NoneType' object has no attribute 'attname' super().__init__(*args, **kwargs)