#28952: inspectdb generates primary_key with null=True
-------------------------------------+-------------------------------------
Reporter: Victor Fernandez | Owner: nobody
Martinez |
Type: Bug | Status: closed
Component: Core (Management | Version: 1.11
commands) | Resolution:
Severity: Normal | worksforme
Keywords: inspectdb | Triage Stage:
primary_key null | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):
* status: new => closed
* resolution: => worksforme
Comment:
I'm unable to reproduce your issue. This is what I'm getting on PostgreSQL
9.6, Django 1.11 (also tested on Django 2.0):
{{{
class AdminItemPermissions(models.Model):
id = models.BigAutoField(primary_key=True)
admin_id = models.BigIntegerField(blank=True, null=True)
item_id = models.BigIntegerField(blank=True, null=True)
permissions = models.IntegerField(blank=True, null=True)
class Meta:
managed = False
db_table = 'admin_item_permissions'
unique_together = (('admin_id', 'item_id'),)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28952#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/081.fdbed611e75a506e156abf1e185a4ee8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.