"models" is a module that contains classes Model and CharField. Person inherits from Model.
first_name and last_name are instances of CharField. There's no functional programming here. -WN. On Sun, Oct 16, 2011 at 6:43 PM, youpsla <youp...@gmail.com> wrote: > 1 from django.db import models > 2 > 3 class Person(models.Model): > 4 first_name = models.CharField(max_length=30) > 5 last_name = models.CharField(max_length=30) > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.