Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-16 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Mariusz Felisiak):

 * 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/0107018b3bbbee55-d6b56da8-d1c2-4d99-8525-989b37f3e981-00%40eu-central-1.amazonses.com.


Re: [Django] #34901: Add async interface to contrib.sessions

2023-10-16 Thread Django
#34901: Add async interface to contrib.sessions
--+--
 Reporter:  Jon Janzen|Owner:  Jon Janzen
 Type:  New feature   |   Status:  assigned
Component:  contrib.sessions  |  Version:  dev
 Severity:  Normal|   Resolution:
 Keywords:  async | Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+--
Changes (by Jon Janzen):

 * has_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/0107018b3b5559d3-ec622da7-02d2-4a36-8dd5-70efd111a4b6-00%40eu-central-1.amazonses.com.


Re: [Django] #34901: Add async interface to contrib.sessions

2023-10-16 Thread Django
#34901: Add async interface to contrib.sessions
--+--
 Reporter:  Jon Janzen|Owner:  Jon Janzen
 Type:  New feature   |   Status:  assigned
Component:  contrib.sessions  |  Version:  dev
 Severity:  Normal|   Resolution:
 Keywords:  async | Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+--

Comment (by Jon Janzen):

 [https://github.com/django/django/pull/17372 PR]

-- 
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/0107018b3b552dbe-c19af3eb-c50e-44b0-85bf-3499dffb3d1f-00%40eu-central-1.amazonses.com.


Re: [Django] #29771: Support database-specific syntax for bulk_update

2023-10-16 Thread Django
#29771: Support database-specific syntax for bulk_update
-+-
 Reporter:  Tom Forbes   |Owner:  Akash
 Type:   |  Kumar Sen
  Cleanup/optimization   |   Status:  assigned
Component:  Database layer   |  Version:  dev
  (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
-+-
Changes (by Akash Kumar Sen):

 * owner:  (none) => Akash Kumar Sen
 * 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/0107018b3b065584-ced2aec5-7db7-4ff9-bbc7-38d26f78d0fb-00%40eu-central-1.amazonses.com.


Re: [Django] #34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28

2023-10-16 Thread Django
#34852: Django Unit Tests break when using replicated MySQL Cluster v8.0.28
+-
 Reporter:  Aaron Blair |Owner:  Can Huynh
 Type:  Bug |   Status:  assigned
Component:  Testing framework   |  Version:  4.1
 Severity:  Normal  |   Resolution:
 Keywords:  Test MySQL Cluster  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  1   |UI/UX:  0
+-

Comment (by Can Huynh):

 Hi, I have attempted to install MySQL Cluster v8.0.28 but it doesn't seem
 to be working. I may have done it incorrectly. I tried doing this locally
 and on AWS but was not successful. Are you able to provide me
 instructions/resources on how to install this so I can continue with this
 ticket?

-- 
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/0107018b3aa17e15-05a7a5e2-2483-4a86-9aea-039116708431-00%40eu-central-1.amazonses.com.


Re: [Django] #34899: Model Field.choices callable support is not actually lazy

2023-10-16 Thread Django
#34899: Model Field.choices callable support is not actually lazy
-+-
 Reporter:  Adam Johnson |Owner:  Nick Pope
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  choices, callable,   | Triage Stage:  Accepted
  lazy   |
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Nick Pope):

 * keywords:   => choices, callable, lazy
 * needs_better_patch:  0 => 1
 * has_patch:  0 => 1
 * status:  new => assigned
 * owner:  nobody => Nick Pope


Comment:

 [https://github.com/django/django/pull/17370 PR]

-- 
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/0107018b39d3a539-d445bbcb-7162-4515-995c-103e9897bb17-00%40eu-central-1.amazonses.com.


Re: [Django] #34899: Model Field.choices callable support is not actually lazy

2023-10-16 Thread Django
#34899: Model Field.choices callable support is not actually lazy
-+-
 Reporter:  Adam Johnson |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   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 apoorvaeternity):

 Here
 
[https://github.com/django/django/blob/f6629ee2c986d3bf59b4c1b3058f370a00bdc573/django/db/models/fields/__init__.py#L1115]
 if we add a check for `CallableChoiceIterator` and set
 `defaults["choices"]` as the `choices callable` instead of calling the
 `get_choices` method directly, that seems to fix this issue.

 {{{#!python
 if isinstance(self.choices, CallableChoiceIterator):
 defaults["choices"] = self.choices
 else:
 include_blank = self.blank or not (
 self.has_default() or "initial" in kwargs
 )
 defaults["choices"] = self.get_choices(include_blank=include_blank)
 }}}

 The only caveat with this solution is that the blank choice has to be set
 within the `choices callable` and would no longer be handled by
 `get_choices` as it relies on checking if a blank choice exists as one of
 the available choices which itself requires calling the `choices
 callable`.

 I have tested this using the example posted in the issue description and
 it works. If this solution looks good I would be happy to land a PR.

-- 
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/0107018b38c649e2-4b647cf8-f5a1-49e5-9484-034c592fa92a-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-16 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Tom Carrick):

 * needs_better_patch:  1 => 0


-- 
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/0107018b37db8816-24d2602b-2e55-4de8-9765-70f735be5f14-00%40eu-central-1.amazonses.com.


Re: [Django] #34902: django.test.client.Client.head request fails on AttributeError as_sync is missing

2023-10-16 Thread Django
#34902: django.test.client.Client.head request fails on AttributeError as_sync 
is
missing
---+--
 Reporter:  jelly  |Owner:  nobody
 Type:  Uncategorized  |   Status:  closed
Component:  Testing framework  |  Version:  4.2
 Severity:  Normal |   Resolution:  worksforme
 Keywords: | Triage Stage:  Unreviewed
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+--
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => worksforme
 * component:  Uncategorized => Testing framework


Comment:

 Thanks for the report, however the following works for me with Django
 4.2.6:

 {{{#!diff
 diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py
 index 0348b8e5d6..6bfa852db5 100644
 --- a/tests/handlers/tests.py
 +++ b/tests/handlers/tests.py
 @@ -253,6 +253,10 @@ class HandlerRequestTests(SimpleTestCase):
  self.assertEqual(response.status_code, 200)
  self.assertEqual(b"".join(list(response)), b"streaming content")

 +def test_head_streaming(self):
 +response = self.client.head("/streaming/")
 +self.assertEqual(response.status_code, 200)
 +
  def test_async_streaming(self):
  response = self.client.get("/async_streaming/")
  self.assertEqual(response.status_code, 200)

 }}}

-- 
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/0107018b37daae3c-2e4c0334-108f-445f-a73e-34a5dbbf42f3-00%40eu-central-1.amazonses.com.


[Django] #34902: django.test.client.Client.head request fails on AttributeError as_sync is missing

2023-10-16 Thread Django
#34902: django.test.client.Client.head request fails on AttributeError as_sync 
is
missing
-+
   Reporter:  jelly  |  Owner:  nobody
   Type:  Uncategorized  | Status:  new
  Component:  Uncategorized  |Version:  4.2
   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  |
-+
 A simple head request test now fails for me since Django 4.2. I do use
 pytest-django however I am not sure if this is related as the normal
 django test client is used.

 {{{
 def test_head(client):
 response = client.head('/packages/core/x86_64/linux/')
 assert response.status_code == 200
 }}}


 {{{
 client = , package =
 None

 def test_head(client, package):
 print(client)
 >   response = client.head('/packages/core/x86_64/linux/')

 packages/tests/test_views.py:114:
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 env/lib/python3.11/site-packages/django/test/client.py:975: in head
 response = super().head(
 env/lib/python3.11/site-packages/django/test/client.py:495: in head
 return self.generic(
 env/lib/python3.11/site-packages/django/test/client.py:609: in generic
 return self.request(**r)
 env/lib/python3.11/site-packages/django/test/client.py:886: in request
 response = self.handler(environ)
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

 self = 
 environ = {'HTTP_COOKIE': '', 'PATH_INFO': '/packages/core/x86_64/linux/',
 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', ...}

 def __call__(self, environ):
 # Set up middleware if needed. We couldn't do this earlier,
 because
 # settings weren't available.
 if self._middleware_chain is None:
 self.load_middleware()

 request_started.disconnect(close_old_connections)
 request_started.send(sender=self.__class__, environ=environ)
 request_started.connect(close_old_connections)
 request = WSGIRequest(environ)
 # sneaky little hack so that we can easily get round
 # CsrfViewMiddleware.  This makes life easier, and is probably
 # required for backwards compatibility with external tests against
 # admin views.
 request._dont_enforce_csrf_checks = not self.enforce_csrf_checks

 # Request goes through middleware.
 response = self.get_response(request)

 # Simulate behaviors of most web servers.
 conditional_content_removal(request, response)

 # Attach the originating request to the response so that it could
 be
 # later retrieved.
 response.wsgi_request = request

 # Emulate a WSGI server by calling the close method on completion.
 if response.streaming:
 >   if response.is_async:
 E   AttributeError: 'HttpResponse' object has no attribute
 'is_async'

 env/lib/python3.11/site-packages/django/test/client.py:187: AttributeError
 }}}

-- 
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/0107018b37c83f65-ca99de09-99d1-4d48-9bf3-fc50c9bced6c-00%40eu-central-1.amazonses.com.


Re: [Django] #34043: Doc "Writing your first patch for Django" doesn't explain how to contribute to the admin UI

2023-10-16 Thread Django
#34043: Doc "Writing your first patch for Django" doesn't explain how to 
contribute
to the admin UI
---+---
 Reporter:  Hugo Herter|Owner:  Sarah Boyce
 Type:  New feature|   Status:  assigned
Component:  Documentation  |  Version:  dev
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  1
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  1
---+---

Comment (by Mariusz Felisiak ):

 In [changeset:"f6629ee2c986d3bf59b4c1b3058f370a00bdc573" f6629ee]:
 {{{
 #!CommitTicketReference repository=""
 revision="f6629ee2c986d3bf59b4c1b3058f370a00bdc573"
 Refs #34043 -- Added context managers to SeleniumTestCase for changing
 window size.
 }}}

-- 
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/0107018b37c77275-34f54d4c-b22d-4c47-8b20-a801209419cd-00%40eu-central-1.amazonses.com.


Re: [Django] #10941: Add a templatetag to generate querystrings

2023-10-16 Thread Django
#10941: Add a templatetag to generate querystrings
-+---
 Reporter:  Ben Spaulding|Owner:  Tom Carrick
 Type:  New feature  |   Status:  assigned
Component:  Template system  |  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:  pagination   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Mariusz Felisiak):

 * 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/0107018b3775bbd2-701c146e-8307-4555-92bd-cbdcff4bf24d-00%40eu-central-1.amazonses.com.