Re: need some explanation

2013-12-05 Thread Scot Hacker
On Wednesday, December 4, 2013 5:27:39 AM UTC-8, Tom Evans wrote: > > On Wed, Dec 4, 2013 at 7:20 AM, Hussain Nagri > > > wrote: > > Hello, > > I am new to Django and trying to learn myself. > > My question is that when we create models in model.py then after each > class > > we define a '__

Re: need some explanation

2013-12-04 Thread Tom Evans
On Wed, Dec 4, 2013 at 7:20 AM, Hussain Nagri wrote: > Hello, > I am new to Django and trying to learn myself. > My question is that when we create models in model.py then after each class > we define a '__unicode__'. Is it necessary that we define this method ? It > gets called every time I try t

need some explanation

2013-12-04 Thread Hussain Nagri
Hello, I am new to Django and trying to learn myself. My question is that when we create models in model.py then after each class we define a '__unicode__'. Is it necessary that we define this method ? It gets called every time I try to fetch any data from that model. what if I don’t want it to