#21465 closed Uncategorized (duplicate)

custom adminsite model form has no way to access request

Reported by: wingyiu Owned by: nobody
Component: contrib.admin Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

if request.method == 'POST':

form = ModelForm(request.POST, request.FILES)

some validtion may need the current user object, so can pass the request to the form?

Change History (2)

comment:1 Changed 16 months ago by wingyiu

  • Component changed from Uncategorized to contrib.admin
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Type changed from Uncategorized to New feature

comment:2 Changed 16 months ago by wingyiu

  • Resolution set to duplicate
  • Status changed from new to closed
  • Type changed from New feature to Uncategorized
Note: See TracTickets for help on using tickets.
Back to Top