mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #34171 -- Fixed QuerySet.bulk_create() on fields with db_column in unique_fields/update_fields.
Bug in 0f6946495a.
Thanks Joshua Brooks for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
7d5329852f
commit
4035bab56f
@@ -69,6 +69,11 @@ class TwoFields(models.Model):
|
||||
name = models.CharField(max_length=15, null=True)
|
||||
|
||||
|
||||
class FieldsWithDbColumns(models.Model):
|
||||
rank = models.IntegerField(unique=True, db_column="rAnK")
|
||||
name = models.CharField(max_length=15, null=True, db_column="oTheRNaMe")
|
||||
|
||||
|
||||
class UpsertConflict(models.Model):
|
||||
number = models.IntegerField(unique=True)
|
||||
rank = models.IntegerField()
|
||||
|
||||
Reference in New Issue
Block a user