On 6/14/06, Uros Trebec <[EMAIL PROTECTED]> wrote:
>
> 2.1. Basic models:
> To enable history tracking Bob has to create a sub-class for those
> models that he will like to track:
>
>         class Post(models.Model):
>                 author = models.CharField(maxlength=100)
>                 title = models.CharField(maxlength=100)
>                 content = models.TextField()
>                 date = models.dateField()
>
>                 class History:
>                         pass

A minor quibble: "History" would be called an "inner class" in this
case; a "subclass" would be a class that inherits from another class,
like "Post" in this example (being a subclass of Model).

Other than that, neat stuff!  :-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to