Opened 11 years ago

Closed 11 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

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 by wingyiu, 11 years ago

Component: Uncategorizedcontrib.admin
Type: UncategorizedNew feature

comment:2 by wingyiu, 11 years ago

Resolution: duplicate
Status: newclosed
Type: New featureUncategorized
Note: See TracTickets for help on using tickets.
Back to Top