Re: [Django] #25195: update_or_create doesn't understand F() operations

2018-08-24 Thread Django
#25195: update_or_create doesn't understand F() operations
-+-
 Reporter:  Marc Tamlyn  |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by ghazpar):

 How about the following?

 {{{
 Foo.objects.update_or_create(name='bar', defaults={'value':
 Coalesce('value', 0) + 1})
 }}}

 where one could specify an explicit default?

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.885b4374f2f26e29a83c0f4152faaec9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #29691: Support ForeignKey based model inheritance

2018-08-24 Thread Django
#29691: Support ForeignKey based model inheritance
-+-
 Reporter:  James Pic|Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Database layer   |  Version:  2.1
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  wontfix
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by James Pic):

 Thanks a heap for your feedback,

 I suppose I could try this by overriding a metaclass, if it works for this
 use case i will make a DEP then (to avoid maintaining the pochack accross
 stable django releases)

 Have a great day

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.43a5aadaff0c1a3af07274419776fa38%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #29708: Deprecate PickleSerializer and move it out of core

2018-08-24 Thread Django
#29708: Deprecate PickleSerializer and move it out of core
-+
   Reporter:  Alex Gaynor|  Owner:  nobody
   Type:  Uncategorized  | Status:  new
  Component:  Uncategorized  |Version:  2.1
   Severity:  Normal |   Keywords:
   Triage Stage:  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+
 Pickle serializer has long been known to be dangerous. This is mitigated
 by requiring MAC on pickle in cookies, but nevertheless, RCEs continue to
 happen: https://blog.scrt.ch/2018/08/24/remote-code-execution-on-a
 -facebook-server/

 To further discourage it's use, we should consider deprecating
 PickleSerializer and moving it into a third party package.

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.c1058609ea634db88548de01e49aa46b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #23337: CircularDependencyError when squashing migrations

2018-08-24 Thread Django
#23337: CircularDependencyError when squashing migrations
---+
 Reporter:  Richard Eames  |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  Migrations |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by danniranderis):

 * cc: danniranderis (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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.eb42122be467d690b347fb9472cc89fc%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #29688: ModelAdmin: Add attribute to override manager used by ModelAdmin.get_queryset()

2018-08-24 Thread Django
#29688: ModelAdmin: Add attribute to override manager used by
ModelAdmin.get_queryset()
-+-
 Reporter:  Jon Dufresne |Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  contrib.admin|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Carlton Gibson):

 * stage:  Unreviewed => Ready for checkin


Comment:

 OK. Let’s move this forward.

 The patch itself is fine. We’ll ask Tim to make the call on whether to go
 with it.

 Thanks Jon

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.631193b7a2793c98a5a2f1684ee4090a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #29707: New admin autocomplete widget ignores limit_choices_to filter in referring FK definition

2018-08-24 Thread Django
#29707: New admin autocomplete widget ignores limit_choices_to filter in 
referring
FK definition
-+-
 Reporter:  David W. Lloyd   |Owner:  Johannes
 Type:   |  Hoppe
  Cleanup/optimization   |   Status:  assigned
Component:  contrib.admin|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Carlton Gibson):

 * version:  2.1 => master
 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 OK, lets accept this given the previous discussion on #29010. (Joe, I'm
 assuming you're happy to take this on: if not please un-assign.)

 We'll re-assess #29010 after this.

-- 
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.9b823a4f8593c58f426b1fa5f60d2303%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.