Opened 14 years ago
Closed 14 years ago
#15905 closed Bug (invalid)
Forms keyword arguments..
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | 1.2 |
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
when i try to validate my form its is_valid function returns False when i code like this:
form = ProductMetaForm(post)
if form.is_valid():
return True
else:
return False
but, if i equiliaze post to data keyword arg , then it returns True:
in example:
form = ProductMetaForm(data = post)
if form.is_valid():
return True
else:
return False
Note:
See TracTickets
for help on using tickets.
Looking at the implementation of
django.forms.Form
, there is really no way that that can happen, sincedata
is the first positional argument. There must be something more that is not included in the information here e.g. your implementation ofProductMetaForm
.In fact, this sounds more like a support request than a bug (which are not appropriate for Django's tracker), so, since there is not nearly enough information to suggest a bug in Django here, I'm going to close as INVALID. Please re-open if you can show a genuine bug in Django itself with enough information to reproduce it.
Also, please use Trac preview and WikiFormatting to ensure code comes out correctly.