Re: [Django] #28752: Prevent django.setup() from running multiple times

2019-06-01 Thread Django
#28752: Prevent django.setup() from running multiple times
--+
 Reporter:  pascal chambon|Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Core (Other)  |  Version:  1.11
 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 pascal chambon):

 Thanks for reminding me of this ticket, my latest struggles with pytest-
 django made me think a more global solution to the problem of django setup
 and complex environments, and this ticket is for me now superseded by
 https://code.djangoproject.com/ticket/30536 - hoping that the new setting
 I introduce will be OK too.

-- 
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/063.e3201b02745aa1ad23340f02845d5b17%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30536: Improve django.setup() semantic

2019-06-01 Thread Django
#30536: Improve django.setup() semantic
+--
 Reporter:  pascal chambon  |Owner:  nobody
 Type:  New feature |   Status:  new
Component:  Core (Other)|  Version:  master
 Severity:  Normal  |   Resolution:
 Keywords:  setup   | Triage Stage:  Unreviewed
Has patch:  1   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by pascal chambon):

 Pending PR on https://github.com/django/django/pull/11435.

-- 
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/063.90aa68c28d7cc206dcf2aa630ef5bb66%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #30536: Improve django.setup() semantic

2019-06-01 Thread Django
#30536: Improve django.setup() semantic
--+
   Reporter:  pascal chambon  |  Owner:  nobody
   Type:  New feature | Status:  new
  Component:  Core (Other)|Version:  master
   Severity:  Normal  |   Keywords:  setup
   Triage Stage:  Unreviewed  |  Has patch:  1
Needs documentation:  0   |Needs tests:  0
Patch needs improvement:  0   |  Easy pickings:  0
  UI/UX:  0   |
--+
 Make django.setup() idempotent, and add setting DJANGO_SETUP_CALLABLE so
 that actual setup operations can be overridden in a project.

 This is especially useful when testing, since test runners (eg. pytest-
 django) often configure the framework by themselves, before the end user
 can patch it with mockups and other early-time tweaks.

-- 
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/048.b0ff940963877b8446e403f97aa53a46%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25409: Allow url and groups of urls to be easily tagged and selected

2019-06-01 Thread Django
#25409: Allow url and groups of urls to be easily tagged and selected
-+-
 Reporter:  atul-bhouraskar  |Owner:  atul-
 |  bhouraskar
 Type:  New feature  |   Status:  assigned
Component:  Core (URLs)  |  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Someday/Maybe
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by danihodovic):

 Was this feature ever implemented? I'm looking for a way to disable
 caching for all admin urls.

-- 
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/073.2ae4decc3f880c1c692aab5b00865fb0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30535: czech translations for "This password is too short. It must contain at least %(min_length)d character." broken in django >= 2.1.0

2019-06-01 Thread Django
#30535: czech translations for "This password is too short. It must contain at
least %(min_length)d character." broken in django >= 2.1.0
--+--
 Reporter:  Jakub Kaláb   |Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  contrib.auth  |  Version:  2.1
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Unreviewed
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+--

Comment (by Jakub Kaláb):

 Also, before this is resolved, can anyone please tell me how to override
 this? I tried to add the original translations (before linked commit) to
 my app, while also adding the much simpler Plural-Forms setting:

 "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

 The app is higher then django.contrib.auth in INSTALLED_APPS, but my
 override seems to be completely ignored.

-- 
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.ef1414ebcf7b76742b59e957bb01f4d0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30535: czech translations for "This password is too short. It must contain at least %(min_length)d character." broken in django >= 2.1.0

2019-06-01 Thread Django
#30535: czech translations for "This password is too short. It must contain at
least %(min_length)d character." broken in django >= 2.1.0
--+--
 Reporter:  Jakub Kaláb   |Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  contrib.auth  |  Version:  2.1
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Unreviewed
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+--
Changes (by Jakub Kaláb):

 * Attachment "Screenshot from 2019-06-01 13-43-58.png" added.

 screenshot of bug reproduced in django shell

-- 
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.194eb796a53c140ad15b25d912220403%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #30535: czech translations for "This password is too short. It must contain at least %(min_length)d character." broken in django >= 2.1.0

2019-06-01 Thread Django
#30535: czech translations for "This password is too short. It must contain at
least %(min_length)d character." broken in django >= 2.1.0
+
   Reporter:  Jakub Kaláb   |  Owner:  nobody
   Type:  Bug   | Status:  new
  Component:  contrib.auth  |Version:  2.1
   Severity:  Normal|   Keywords:
   Triage Stage:  Unreviewed|  Has patch:  0
Needs documentation:  0 |Needs tests:  0
Patch needs improvement:  0 |  Easy pickings:  1
  UI/UX:  0 |
+
 The plural czech translations for "This password is too short. It must
 contain at least %(min_length)d character." are broken in django versions
 2.1.0 and higher for n >= 5. Can be easily reproduced:

 - create django project
 - set LANGUAGE_CODE = 'cs-CZ' and USE_I18N = True
 - open shell
 - import django.utils.translation.ngettext
 - run ngettext("This password is too short. It must contain at least
 %(min_length)d character.", "This password is too short. It must contain
 at least %(min_length)d characters.", 5) - returns original english
 message instead of the localized one

 Translations for n <= 4 work correctly.

 I thing this bug was introduced in
 
https://github.com/django/django/commit/3e01aab5335394201701710d7fcd67f523878c5b
 #diff-59a8943fbf4bd5fd330ef8d22e40bd3f , but am not completely sure, since
 the commit was created after the 2.1.0 release. Could this be backported?
 Frankly, I'm not even sure why this change was necessary - in czech there
 are only 3 forms of the message needed - they differ in the last word
 'znak' (which means character) thusly:

 - 1 znak
 - 2, 3, 4 znaky
 - 5 and more znaků and also 0 znaků

 I tested this behavior on python 3.6.8 and 3.7.3 and django 2.1.0 and
 2.1.8.

-- 
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/051.a10196927c685aabbb6769f7e3bcb9ae%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #30493: GenericRelation and prefetch_related: wrong caching with cyclic prefetching.

2019-06-01 Thread Django
#30493: GenericRelation and prefetch_related: wrong caching with cyclic
prefetching.
-+-
 Reporter:  Finn Stutzenstein|Owner:  Can
 |  Sarıgöl
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  GenericRelation  | Triage Stage:  Accepted
  prefetch_related   |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Finn Stutzenstein):

 Thanks to Can Sarıgöl, felixxm and charettes for the fix! Great work!

-- 
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/074.46d9f6e76f0cee0ced2e2bc29fc681e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.