Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-05 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Claude Paroz):

 Replying to [comment:19 Marti Raudsepp]:
 > * Fork Django, backport the fix manually, and continue to maintain the
 fork until Django 3.1.0 is released and upgrading is viable

 I think that's clearly the way to go if the fix is critical to your
 application. You may have to update your fork once a month if Django
 periodic minor release contains security fixes, but that's a price to pay
 for Django general stability where you can almost blindly apply minor
 upgrades without worrying. And even with this strict backport policy, it
 has happened in the past that such fixes have introduced regressions, so I
 don't think we should relax this policy.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.e543bb21535c1c911f8124fd6b36768b%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-04 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by felixxm):

 I'm sorry Marti but that's our policy. We're fixing dozens of bugs in each
 month and only few of them are backported. We don't backport all bugfixes
 to minimize the risk of regressions.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.f139a0af8ebb54789a22286146cb58b5%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-04 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Marti Raudsepp):

 What's your suggested solution for users who are hitting this bug now? I
 can think of:

 * Fork Django, backport the fix manually, and continue to maintain the
 fork until Django 3.1.0 is released
 * Upgrade to Django development "master" branch, which sometimes breaks
 third-party Django addons
 * Stop using Django until August 2020 rolls around (just sarcastic,
 sorry!)

 Am I missing something? This is behavior that everyone agrees is a bug,
 and a helpful user provided pull request to fix it. Yet you are leaving
 users hanging without a good solution for ~5 months.

 Seems like a bug in the backport policy itself :)

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.1e4ed5710978144f18cc8b24fc111787%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-04 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by felixxm):

 It doesn't qualify for a backport from the same reason that #22669 didn't
 qualify. It's not a regression it existed since
 9fe050a27598cdce7f2ef7a332b4818b493a8702 (Django 1.4) so it's not crucial.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.4a3fee6e967126d0947d183f634defb2%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-04 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Marti Raudsepp):

 @felixxm, are you sure this doesn't qualify?

 It seems like a significant issue to me; the criteria does list "Crashing
 bugs".

 If I understand correctly, it causes different database backends to behave
 differently? Which is always a bad surprise.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.11bea75db8c647478eb7ccc936d66586%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-04 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by felixxm):

 No, this doesn't qualify for a backport, see
 https://docs.djangoproject.com/en/3.0/internals/release-process/ for more
 details.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.0f4d82e070880b821b12f057a9d12fb1%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-03-04 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Hans Aarne Liblik):

 This didn't get into 3.0.4 release?

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.af038606026187b0dd366641034c5b12%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails.

2020-02-28 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Mariusz Felisiak ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a21f7b91db273a03abfb47b0580bb39e0043c99a" a21f7b91]:
 {{{
 #!CommitTicketReference repository=""
 revision="a21f7b91db273a03abfb47b0580bb39e0043c99a"
 Fixed #31301 -- Fixed crash of QuerySet.bulk_create() with mixed empty and
 set ForeignKeys to AutoFields on Oracle.
 }}}

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.0da44f7fc1b704de492799fb39387aaf%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails. (was: bulk_create with ForeignKey fields with mixed filled/None values fails)

2020-02-28 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails.
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by felixxm):

 * needs_better_patch:  1 => 0
 * version:  3.0 => master
 * needs_tests:  1 => 0
 * stage:  Accepted => Ready for checkin


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.f62026500999317e142a07706d85783b%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-28 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+-
Changes (by felixxm):

 * needs_tests:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.872b4103074b75a5729f4f3eeeb3dfe1%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-27 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+-
Changes (by felixxm):

 * needs_better_patch:  0 => 1


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.4e0749ad4f64ae835c38907f11fe4106%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-27 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Hans Aarne Liblik):

 * stage:  Ready for checkin => Accepted


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.ae0b3930019d3a414d08a07aec3e65c9%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-27 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Hans Aarne Liblik):

 * has_patch:  0 => 1
 * stage:  Accepted => Ready for checkin


Comment:

 https://github.com/django/django/pull/12506

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.4399e6df97646f1fc19f4fd8b88dc0c4%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-27 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by felixxm):

 Hans, Please remember to add also `SmallAutoField` and `BigAutoField`.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.1d5f38103537164fdc8b471f135b9b77%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-27 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Marti Raudsepp):

 * cc: Marti Raudsepp (added)


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.1c414ddd42749ecc9e457dc26866c5b3%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-26 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hans
 |  Aarne Liblik
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Simon Charette):

 * owner:  (none) => Hans Aarne Liblik
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.3b7107462531a882e3f94c9ad0f4fc56%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-26 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Hardik Patel):

 * owner:  Hardik Patel => (none)
 * status:  assigned => new


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.03a235c0a27b06b192ae1a992ad4274e%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-26 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hardik
 |  Patel
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Hardik Patel):

 Replying to [comment:3 Hans Aarne Liblik]:
 > Any progress on this? If not, I can take over.
 It is looking harder than I expected. I am just a newbie. I will come back
 later. Feel free to take over

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.10d7cfc8766407a57ef15ea796302f3f%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-25 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hardik
 |  Patel
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Hans Aarne Liblik):

 Any progress on this? If not, I can take over.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.f327521f46fab51413a8cc8aab4fc97b%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-23 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  Hardik
 |  Patel
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Hardik Patel):

 * owner:  nobody => Hardik Patel
 * status:  new => assigned


-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.fb05bc2f914bedd70799d1e201fb675c%40djangoproject.com.


Re: [Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-23 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
 Reporter:  Hans Aarne Liblik|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  3.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  oracle sql   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Simon Charette):

 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 That seems like the correct approach. Would you be interested in
 submitting a Github PR that addresses the issue?

 Based on c4e2fc5d9872c9a0c9c052a2e124f8a9b87de9b4 adding a nullable
 foreign key on `NullableFields` to another test model of the same module
 should be sufficient to augment the `test_bulk_insert_nullable_fields`
 test to cover this case.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.4ec58573bd32fc9e4a636632301b478c%40djangoproject.com.


[Django] #31301: bulk_create with ForeignKey fields with mixed filled/None values fails

2020-02-22 Thread Django
#31301: bulk_create with ForeignKey fields with mixed filled/None values fails
-+-
   Reporter:  Hans   |  Owner:  nobody
  Aarne Liblik   |
   Type:  Bug| Status:  new
  Component:  Database   |Version:  3.0
  layer (models, ORM)|
   Severity:  Normal |   Keywords:  oracle sql
   Triage Stage: |  Has patch:  0
  Unreviewed |
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+-
 I have a model with ForeignKey (null=True) to another model

 {{{
 class A(models.Model):
   name = models.CharField()

 class B(models.Model):
   name = models.CharField()
   a = models.ForeignKey(A, on_delete=models.CASCADE, null=True)
 }}}

 When I try to use bulk_create as follows

 {{{
 B.objects.bulk_create([
   B(name='first', a_id=1)
   B(name='seconds', a_id=None)
 ])
 }}}

 the query fails with error

 {{{
 django.db.utils.DatabaseError: ORA-01790: expression must have same
 datatype as corresponding expression
 }}}

 I got bulk_create working if the ForeignKey references are either All None
 or All NOT None. It seems like the fix introduced in
 https://code.djangoproject.com/ticket/22669 fixes the case for
 NumberFields and CharFields, but ForeignKey field 'target_field' for me is
 'AutoField' which is not defined in
 {{{
 django/db/backends/oracle/utils.py#52  class BulkInsertMapper:
 }}}
 Manually editing that this file and adding
 {{{
 class BulkInsertMapper:
   ...
   types: {
 ...
 ...
 'AutoField': NUMBER
   }
 }}}

 fixes the issue for me.

-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/058.4358e90d764cd8e3c78bb9097d8b8040%40djangoproject.com.