Sounds good!
Have a great day
On Sat, Sep 30, 2017 at 1:45 AM, Mitul Tyagi wrote:
> It is done.
> On Saturday, September 30, 2017 at 8:55:45 AM UTC+5:30, Mitul Tyagi wrote:
>>
>>
>> My form field is :
>>
>> class CityForm(forms.ModelForm):
>> class Meta:
>> model = City
>>
It is done.
On Saturday, September 30, 2017 at 8:55:45 AM UTC+5:30, Mitul Tyagi wrote:
>
>
> My form field is :
>
> class CityForm(forms.ModelForm):
> class Meta:
> model = City
> fields = ['city1', 'city2', 'city3', 'city4', 'city5', 'userName']
> widgets = {
>
My form field is :
class CityForm(forms.ModelForm):
class Meta:
model = City
fields = ['city1', 'city2', 'city3', 'city4', 'city5', 'userName']
widgets = {
'city1': autocomplete.Select2(url='city-autocomplete'),
'city2': autocomplete.Select2(url
Dear Mitui,
I saw 2 questions in your inquiry:
1. Regarding to Form behaviour
2. Regarding to log message
Let me clarify second:
Provided message said that server responded with 302 - redirect response.
It is correct as you said in your view method:
return HttpResponseRedirect('/login/response/'+
{% csrf_token %}
1st City: {{form.city1}}
2nd City: {{form.city2}}
3rd City: {{form.city3}}
4th City: {{form.city4}}
5th City: {{form.city5}}
Is the template part.
On Saturday, September 30, 2017 at 12:16:07 AM UTC+5:30, Mitul Tyagi wrote:
>
> Problem 1 :
> I have a model with six fields.
Problem 1 :
I have a model with six fields. One is userName and other five are five
favourite cities.I want to update these five citiesbut when I
update them using instance argument the userName becomes NONEI am using
the id field to updatethe cities are updated for the id but t
6 matches
Mail list logo