Opened 3 years ago

Closed 3 years ago

#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


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 3 years 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 3 years 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