old_contents: from lino.api import dd
  from django.db import models
  
  
  class Author(dd.Model):
      first_name = models.CharField("First name", max_length=50)
      last_name = models.CharField("Last name", max_length=50)
      country = models.CharField("Country", max_length=50)
      
      def __unicode__(self):
          return "%s, %s" % (self.last_name, self.first_name)
  
  
  class Book(dd.Model):
      author = models.ForeignKey(Author)
      title = models.CharField("Title", max_length=200)
      published = models.DateField("Published")
      price = models.DecimalField("Price", decimal_places=2, max_digits=10)
  
  
  
new_contents: from lino.api import dd
  from django.db import models
  
  
  class Author(dd.Model):
      first_name = models.CharField("First name", max_length=50)
      last_name = models.CharField("Last name", max_length=50)
      country = models.CharField("Country", max_length=50)
      
      def __unicode__(self):
          return "%s, %s" % (self.last_name, self.first_name)
  
  
  class Book(dd.Model):
      author = models.ForeignKey(Author)
      title = models.CharField("Title", max_length=200)
      published = models.IntegerField("Published")
      price = models.DecimalField("Price", decimal_places=2, max_digits=10)
  
  
  
subject: Revert "Updated tutorial/tables/models for date field rahter than int"