you can put docstrings to document what the classes are doing.. :-)

cheers,

Etienne


Le 2018-01-05 à 05:52, utpalbrahma1...@gmail.com a écrit :
from  django.db  import  models


class  Question(models.Model):
     question_text  =  models.CharField(max_length=200)
     pub_date  =  models.DateTimeField('date published')


class  Choice(models.Model):
     question  =  models.ForeignKey(Question,  on_delete=models.CASCADE)
     choice_text  =  models.CharField(max_length=200)
     votes  =  models.IntegerField(default=0)
--
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/39e00f5e-41d1-4d17-8116-41db3c6ab072%40googlegroups.com <https://groups.google.com/d/msgid/django-users/39e00f5e-41d1-4d17-8116-41db3c6ab072%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/818a5636-3448-217c-88e6-fe68a245a460%40yandex.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to