Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-27 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+-
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  closed
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | 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 Matthias Kestenholz):

 Hi all

 Great new feature! Thanks. I wanted to comment on the naming of the new
 parameter; maybe `can_add=True` would be a better default than
 `edit_only=False`? There's a precedent for using `can_*` in Django's
 codebase and it would be a bit more consistent.

-- 
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/067.5973fe1890bac82621a353d82bf316ef%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-27 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+-
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  closed
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | 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:"e87f57fdb8dcdabc452bd15abd015bf6c9b1f7a8" e87f57f]:
 {{{
 #!CommitTicketReference repository=""
 revision="e87f57fdb8dcdabc452bd15abd015bf6c9b1f7a8"
 Fixed #26142 -- Allowed model formsets to prevent new object creation.

 Thanks Jacob Walls, David Smith, and Mariusz Felisiak for reviews.

 Co-authored-by: parth 
 }}}

-- 
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/067.4eecba7a1a4d593ffa4b6cab6d560c5d%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-27 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+-
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | 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):

 * 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/067.810dae8061d7d4f3fce466914f3b956e%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-23 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_docs:  1 => 0


Comment:

 Fixed docs, where Sphinx raised warnings

-- 
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/067.5617d075e1c863aa844410835c8ac5da%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-20 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Jacob Walls):

 * needs_docs:  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/067.d6755c9c1925e27856cae7b335bbacaa%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-20 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_docs:  1 => 0


Comment:

 Added topic about `edit_only` mode in Formsets and fixed other remarks.

-- 
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/067.1ca05961a3280fe2aecbea8ddcbf8dc1%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2022-01-14 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Jacob Walls):

 * needs_docs:  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/067.7dc03affbb266a33722d2f7a766a84aa%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-12-18 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_better_patch:  1 => 0
 * needs_tests:  1 => 0
 * needs_docs:  1 => 0


Comment:

 Added argument for `inlineformset_factory`, tests for
 `inlineformset_factory` and `formset_factory`, changed docs and release
 notes

-- 
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/067.fee0725436af241471342abcf7ea7551%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-10-13 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  1|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+
Changes (by Mariusz Felisiak):

 * needs_better_patch:  0 => 1
 * needs_tests:  0 => 1
 * needs_docs:  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/067.f8be46e1e1e3538986152e5210ad8894%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-09-25 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_better_patch:  1 => 0


Comment:

 Added `edit_only` argument to the `formset_factory`.

-- 
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/067.8be5fac4b878eeca119dccb7bf97ac58%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-09-09 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+
Changes (by Jacob Walls):

 * 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/067.e2eddd7ec91e63d9bd095884ab99ebaf%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-09-06 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_better_patch:  1 => 0


Comment:

 I added ***edit_only*** argument for the {{{modelfomset_factory}}} and
 fixed tests as
 [https://github.com/django/django/pull/14725/#issuecomment-913259753
 discussed with Jacob]. Also, I documented changes for the
 {{{modelformset_factory}}} in release notes and topic about modelformsets.

-- 
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/067.b6af45a7a7a5b909eaaa5bed74cc7382%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-24 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+
Changes (by Jacob Walls):

 * needs_better_patch:  0 => 1


Comment:

 I agree with [https://github.com/django/django/pull/14725/files#r690721475
 David's suggestion] to include the new argument in
 `modelformset_factory()`.

-- 
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/067.09ca19420c3b9a176e145a581cd32203%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-13 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_tests:  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/067.2ddcf1fad6c6e026b307a2f95f7da4e4%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-10 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Jacob Walls):

 * needs_tests:  0 => 1


Comment:

 Patch still lacks a regression test that fails on main (upon removing the
 keyword introduced by the PR). Luckily, there is one we can use in the
 previous PR. Vlad, can you update your patch with additional tests from
 the previous 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/067.3b718b4906473e6b7a3849d7c5e42201%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-09 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * needs_better_patch:  1 => 0
 * needs_tests:  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/067.be8195f3b26e40b11d5187d784865f9c%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-06 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  Vlad
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  1|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+
Changes (by Mariusz Felisiak):

 * owner:  (none) => Vlad
 * needs_better_patch:  0 => 1
 * status:  new => assigned
 * 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/067.c2517fd88132c9f8187deadaa3db8032%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-03 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  (none)
 Type:  New feature  |   Status:  new
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+
Changes (by Vlad):

 * 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/067.dbf69c5d1a2c5c1aa1ad471f9acccf2c%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-08-02 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  (none)
 Type:  New feature  |   Status:  new
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+

Comment (by Vlad):

 I added a PR (https://github.com/django/django/pull/14725) for this
 ticket. It's based on previous patch that Parth Patil made. I cleaned up
 git artifacts and changed tests.

-- 
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/067.3255747cf97c65c538bfe81aa2d6229c%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-07-15 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  Tim Graham   |Owner:  (none)
 Type:  New feature  |   Status:  new
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+
Changes (by David Smith):

 * owner:  Parth Patil => (none)
 * status:  assigned => new
 * easy:  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/067.d57449910516d1011ade972ab9a01798%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-07-07 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+---
 Reporter:  Tim Graham   |Owner:  Parth Patil
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Carlton Gibson):

 * 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/067.bb772d283e161dc5d33d7a0e580e888a%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2021-05-28 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+---
 Reporter:  Tim Graham   |Owner:  Parth Patil
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by Jacob Walls):

 * needs_better_patch:  1 => 0
 * needs_docs:  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/067.9476d69cfccf46e207e028f664953524%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2019-07-23 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+---
 Reporter:  Tim Graham   |Owner:  Parth Patil
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+---
Changes (by felixxm):

 * needs_better_patch:  0 => 1
 * needs_docs:  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/067.a2c4a3778d109edeb19cf59ae148a2a7%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2019-07-20 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+---
 Reporter:  Tim Graham   |Owner:  Parth Patil
 Type:  New feature  |   Status:  assigned
Component:  Forms|  Version:  master
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+---
Changes (by felixxm):

 * 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/067.076443694df425dc80cb08f3a4a359db%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2019-07-19 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+---
 Reporter:  Tim Graham   |Owner:  Parth Patil
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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
-+---

Comment (by Parth Patil):

 Here is a link to the PR for this ticket,  please have a look
 https://github.com/django/django/pull/11580

-- 
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/067.850762d1be8aa07fce9c860e974f0837%40djangoproject.com.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2019-07-01 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+---
 Reporter:  Tim Graham   |Owner:  Parth Patil
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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 Parth Patil):

 * owner:  Mathias Rav => Parth Patil


Comment:

 Hey Mathias, I have started working on this ticket, hope it's not a
 problem that I'm assigning this to myself. Found no other to contact you
 so am directly assigning it.

 I will try to make an `edit_only` mode for the `ModelFormSet` which will
 fix this issue.

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


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-05-29 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  Mortal
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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
-+

Comment (by timgraham):

 I don't think `max_num=0` allows editing existing instances. Such a
 formset will fail with "Please submit 0 or fewer forms." won't it?

 The idea I had to try to accomplish this is setting
 `max_num=len(queryset)` but I'm attaching a regression test demonstrating
 that an extra instance is created if the user edits the `'form-
 INITIAL_FORMS'` form value.

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


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-05-29 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  Mortal
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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 timgraham):

 * Attachment "26142-test.diff" 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/067.aa8bc87b770bc2ab8d57356fdc7e8a93%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-05-10 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  Mortal
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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
-+

Comment (by dsanders11):

 Can you expand on that a little? Looking at the formset code, if the form
 number is less than the initial form count, it uses
 `save_existing_object`. Since `validate_max` prevents any forms above
 initial form count from being a valid formset, the only way a new object
 could be created is if `save_existing_object` could create new objects,
 which would be a bug in itself probably.

 Playing with it in Chrome, providing a blank value for the PK of one of
 the objects in the formset will cause an error when
 [https://github.com/django/django/blob/master/django/forms/models.py#L605
 trying to use to_python on the PK value] since the value is blank and an
 integer is expected. Even if that didn't fail, it would fail to find the
 object by its PK in the queryset.

 Providing a bogus value for the PK will also
 [https://github.com/django/django/blob/master/django/forms/models.py#L588
 fail to look up in the queryset] on the formset. This also occurs if you
 use a PK for an existing object that isn't in the queryset, which is good,
 otherwise you'd be able to modify objects outside the queryset which would
 be very bad.

 So, I'm not sure I see the path where new objects can be created if
 `validate_max` is set and `max_num` is 0. Doesn't mean it's not there, but
 it's not immediately obvious how that could occur.

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


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-05-09 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  Mortal
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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
-+

Comment (by timgraham):

 Yes, I think it's that sending data that references pks that don't appear
 in the queryset creates new objects for that data.

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


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-05-08 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  Mortal
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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
-+

Comment (by dsanders11):

 Doesn't `max_num` already allow this? Testing on master, if you have
 `max_num` set to 0 and `validate_max` to `True`, then the formset is
 effectively edit-only for existing objects. From the
 [https://docs.djangoproject.com/en/1.9/topics/forms/modelforms/#limiting-
 the-number-of-editable-objects documentation]:

 > `max_num` does not prevent existing objects from being displayed

 Is there a corner case of functionality that's not covered by these two
 settings?

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


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-01-27 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  Mortal
 Type:  New feature  |   Status:  assigned
Component:  Forms|  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 Mortal):

 * owner:  nobody => Mortal
 * 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 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.10b60592a431d390b279f69b01e6c608%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-01-27 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Forms|  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
-+

Comment (by Tim Graham ):

 In [changeset:"204d31cd6033bfcd7ede1a6eedcc5f351d2cfa11" 204d31c]:
 {{{
 #!CommitTicketReference repository=""
 revision="204d31cd6033bfcd7ede1a6eedcc5f351d2cfa11"
 [1.9.x] Refs #26142 -- Documented that Formset's extra=0 doesn't prevent
 creating objects.

 Backport of 8e6a08e937272f088902cdbec65a9f2e919783bf from master
 }}}

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


Re: [Django] #26142: Provide a way for model formsets to disallow new object creation

2016-01-27 Thread Django
#26142: Provide a way for model formsets to disallow new object creation
-+
 Reporter:  timgraham|Owner:  nobody
 Type:  New feature  |   Status:  new
Component:  Forms|  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
-+

Comment (by Tim Graham ):

 In [changeset:"8e6a08e937272f088902cdbec65a9f2e919783bf" 8e6a08e]:
 {{{
 #!CommitTicketReference repository=""
 revision="8e6a08e937272f088902cdbec65a9f2e919783bf"
 Refs #26142 -- Documented that Formset's extra=0 doesn't prevent creating
 objects.
 }}}

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