These are chat archives for django/django

9th
Dec 2017
djangoReactGuy
@SanskarSans
Dec 09 2017 02:21
Does creating a field disabled automatically marks it as required?
Anish Shrestha
@annshress
Dec 09 2017 02:26
@emihir0 why not use postgres in development as well
@SanskarSans I thought it would be other way around?
djangoReactGuy
@SanskarSans
Dec 09 2017 02:35
yesterday @elcolie suggested me to use basic_amount = forms.DecimalField(disabled=True) for disabling the field. I passed blank=True, null=True to basic_amount field , thought that it will make the field not required but its just a permissible in the database, not the form. I had to pass required=False as well in the basic_amount in forms.
Anish Shrestha
@annshress
Dec 09 2017 02:45
blank = True should have done the job, in my opinion.
@SanskarSans are you using django forms on a react front-end?
djangoReactGuy
@SanskarSans
Dec 09 2017 03:00
nup i am using pure django
using blank=True did not work. That's what I thought before that it should work because I am using modelform
Anish Shrestha
@annshress
Dec 09 2017 03:03
That's what I have been doing.
I have not controlled disabled attribute from model field.
Maybe add that logic in the form initialization part for appropriate segregation.
djangoReactGuy
@SanskarSans
Dec 09 2017 03:10
using that required attr worked
Anish Shrestha
@annshress
Dec 09 2017 03:19
Nice
Shreya
@shreyateeza
Dec 09 2017 14:04
Hello everyone! I am new here. I would like to contribute here for gsoc 2018.
prinxy
@prinxy
Dec 09 2017 15:09

Hello All i am new here and just started with Django, please all, i do need help on this .... Help a starter

https://pastebin.com/a7B8C0YB

djangoReactGuy
@SanskarSans
Dec 09 2017 15:18
Page.objects.all() is an queryset. You need to iterate over the object to get the text
prinxy
@prinxy
Dec 09 2017 17:01
@SanskarSans Thanks for the feedback👍.
abdulbahajaj
@abdulbahajaj
Dec 09 2017 19:26
‘’’ k ‘’'
prinxy
@prinxy
Dec 09 2017 22:31
Thanks @SanskarSans, that solved it
prinxy
@prinxy
Dec 09 2017 22:42
Please guys checkout on this....
I need your help
Thanks in advance