#8494: Instantiating ModelForm with request as kwargin ModelAdmin -----------------------------+---------------------------------------------- Reporter: sorl | Owner: nobody Status: new | Milestone: 1.0 Component: Admin interface | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- May I propose instantiating the ModelForm with request as kwarg in add_view, change_view in ModelAdmin class. This would allow the form, fields to be customized and validated on a per user basis.
-form = ModelForm(request.POST, request.FILES) +form = ModelForm(request.POST, request.FILES, request=request) Perhaps also the FormSet -- Ticket URL: <http://code.djangoproject.com/ticket/8494> Django Code <http://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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
