We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django models using models.BigAutoField will have a CharField generated by ModelResource instead of expected IntegerField
The following line in the ModelResource class is the culprit:
https://github.com/django-tastypie/django-tastypie/blob/master/tastypie/resources.py#L1913
The following change is proposed:
- elif internal_type in ('IntegerField', 'PositiveIntegerField', 'PositiveSmallIntegerField', 'SmallIntegerField', 'AutoField', 'BigIntegerField'): + elif internal_type in ('IntegerField', 'PositiveIntegerField', 'PositiveSmallIntegerField', 'SmallIntegerField', 'AutoField', 'BigIntegerField','BigAutoField'):
PR: #1621
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Django models using models.BigAutoField will have a CharField generated by ModelResource instead of expected IntegerField
Details
The following line in the ModelResource class is the culprit:
https://github.com/django-tastypie/django-tastypie/blob/master/tastypie/resources.py#L1913
The following change is proposed:
PR: #1621
The text was updated successfully, but these errors were encountered: