Hi Parth, 

Yes, something along those lines will be right. 

First-off, what are the existing work-arounds (i.e. how are people handling 
this in the wild: overriding `__init__()` methods etc...) — can these be 
summarised and documented, where worth recommending?

Then, API changes to improve on that situation, like passing in request 
objects. (From experience with DRF and django-filter, making the request 
available solves **most** issues for **most** users — "But I need X! — But 
that's just `request.X`" 9 times out of 10.) 

THEN, look at open accepted issues on Forms 
<https://code.djangoproject.com/query?status=assigned&status=new&component=Forms&col=id&col=summary&col=status&col=owner&col=type&col=component&col=version&desc=1&order=id>.
 
There are ≈70. Begin with FormSets issues, then spread out. Which are 
related? (#10403?) Which can you target? You don't have to solve them all 
(!) but a good goal for a 12 week project would be to become a total expert 
on django.forms, and to have handled a number of issues as part of that. 

HTH.

Kind Regards,

Carlton


On Tuesday, 26 March 2019 18:56:56 UTC+1, PARTH PATIL wrote:
>
> I was planning  to do the "Formset Improvements 
> <https://code.djangoproject.com/wiki/SummerOfCode2019#Formsetimprovements>" 
> project in GSoC. I would need some more explanation on what is expected as 
> nothing was clearly mentioned there.
> You can link the related tickets or elaborate on what is needed that would 
> be helpful.
>
> I dug a little bit deeper into this. and found some related issues 1 
> <https://stackoverflow.com/questions/622982/django-passing-custom-form-parameters-to-formset>
>  
> | 2. 
> <https://stackoverflow.com/questions/52269308/django-unable-to-pass-request-to-form-while-using-formset-produces-init>
>
> I'm planning to add a request variable in the BaseFormSet Class 
> <https://github.com/Parth1811/django/blob/8ec7ded3706fe66bf307ed339eb852d73f6d10d0/django/forms/formsets.py#L46-L61>
>  
> and then handle it such that it will be available within every form (not 
> completely polished till now).
>
>    1. Is this a good approach?
>    2. Will this solve the problem? (If not please mention the problems 
>    which will not be solved
>
> I am also looking for some additional features that maybe added to formset 
> so am open for suggestions.
> I'm currently in middle of making the abstract so before moving forward i 
> would like to get some confirmation that this is correct approach. Thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/739596dd-772d-42ac-808e-32c670b8b683%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to