Questions tagged [cleaned-data]
38 questions
0
votes
2 answers
Object has no attribute cleaned_data
I am trying to fill out a form in my Django web application and post it. It is giving me an error
object Application has no attribute cleaned_data
I looked around Stack Overflow at similar questions, but the resolutions for others are not issues…

TJB
- 3,706
- 9
- 51
- 102
0
votes
2 answers
cleaned_data() doesn't have some of the entered data
I have a simple form for a user to enter in Name (CharField), Age(IntegerField), and Sex(ChoiceField). However the data that is taken from the Sex choice field is not showing up in my cleaned_data(). Using a debugger, I can clearly see that the data…

ikottman
- 1,996
- 3
- 21
- 23
0
votes
1 answer
Django custom form validation/cleaning
Okay so I have a form where depending on the value of the drop down only certain fields need to be filled in however im getting a key error for a key called "discountpercentage" because if i leave it blank its no where to be seen insive the…

Sam Buckingham
- 1,771
- 2
- 13
- 16
0
votes
1 answer
Form cleaned_data and getting values
I have problem because I'm using smart select ( 3 select fields )to filter my table.
But engine id is wrong and don't get correct query. I need to get no id from db but common names.
views.py
def spec_list(request):
if request.method == 'GET':
…

pejot
- 5
- 1
- 6
0
votes
0 answers
i can't posting data from view to another view using reverse and HttpResponseRedirect?
i'm trying to sending data from a submitted form to another view in my app but
forms.py
class FilterForm(forms.Form):
currency = forms.ChoiceField(choices=Currency_choices)
continent = forms.ChoiceField(choices=Select_continent())
…

Imoum
- 745
- 3
- 12
- 24
0
votes
0 answers
Not using form cleaned_data for autocompletes in django
I'm using an autocomplete within a form. The forms save doesn't seem to want to properly take in my hidden field.
The autocomplete shows a name: for instance 'Steve Butabi'. Its supposed to be sending a username. The username is 'stevebutabi'. Upon…

Modelesq
- 5,192
- 20
- 61
- 88
-1
votes
1 answer
model form has no attribute 'cleaned_data'
I want to sign in to be able to use the site. However, I'm having a problem: 'LoginForm' object has no attribute 'cleaned_data'. Please tell me how can I solve it. I apologize in advance for my English
My forms.py
class LoginForm(forms.Form):
…

spekan
- 1
- 2
-1
votes
2 answers
'NoneType' object is not subscriptable in django rest framework
Im trying to receive data in json format in django restframework and utilize the data immediately but i realize i get error that 'NoneType' object is not subscriptable' and i feel that i need to use cleaned_data but i dont know how to use…

Oladipo
- 19
- 4