Mat Likho bhai.. Many=True, tabhee Likhna h jab ekse jyada Database record aa rha ho.. Matlab ek se jyada instance agar aa rha h toh DRF bolta h unko many=True kardo taki iteration loop chal ske, ek ke bad ek instance ko serializer krega fir vo... Tumne ekhee record aa rha h uspe many=True laga dia matlab ispe loop ni ghum skta islye error aa rha h :)
Your videos are so helpful, keeep up making such courses with you this kind of explanations...❤
agar 1 table me kch fileds hai aur ek filed many to many hai tho usme data save krana hai tho kya krna parega .
what i was missing on was, in models, I didn't say related_name='courses' , could you explain more in how this works
It's just a related name, if you don't define a custom one, by default it will be {model name}_set
Nested mai hum data ko post kr skte hai modelviewset se backend pr
Same doubt
Is there any Coupon Code, I would like to buy Digi Store Course.
Courses are in minimum price
Perfect 👍
Thanks Bhai...
many=True lekha to 'Student' object is not iterable error aya
Mat Likho bhai..
Many=True, tabhee Likhna h jab ekse jyada Database record aa rha ho..
Matlab ek se jyada instance agar aa rha h toh DRF bolta h unko many=True kardo taki iteration loop chal ske, ek ke bad ek instance ko serializer krega fir vo... Tumne ekhee record aa rha h uspe many=True laga dia matlab ispe loop ni ghum skta islye error aa rha h :)