#27240: Passing custom parameters to formset forms in admin
-------------------------------------+-------------------------------------
     Reporter:  arogachev            |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Documentation        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  admin, form,         |             Triage Stage:
  formset, parameter                 |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by arogachev):

 @knbk I understand that approach with class attribute is not elegant. As
 for your soultion - I need to do it for formset form (`AttachmentForm`),
 not admin form. Admin form is different in my case and called
 `EnterpriseAdminForm`. Formset has no `get_form` related method, only
 `get_form_kwargs(self, index):` method. which has no reference to
 `request`.

--
Ticket URL: <https://code.djangoproject.com/ticket/27240#comment:10>
Django <https://code.djangoproject.com/>
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.09da67cf33a1ac61a1021bf79c5a102b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to