"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 <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

