django-stubs
django-stubs copied to clipboard
Django stubs is crashing for the filed name type
Bug report
What's wrong
django stubs is crashing with the below errror when I'm naming the field name type to models.CharField django model.
error traceback
raise FieldDoesNotExist("%s has no field named '%s'" % (self.object_name, field_name))
FieldDoesNotExist: StorePage has no field named 'type'
eg: field
type = models.CharField(max_length=50, null=True, choices=TYPE_CHOICES)
How is that should be
System information
- OS:
pythonversion: 3.9djangoversion: 3.2.14mypyversion: 0.961django-stubsversion: 1.12.0django-stubs-extversion: 0.5.0