Ticket #3997: 3997_2.diff

File 3997_2.diff, 656 bytes (added by Philippe Raoult, 17 years ago)
  • docs/model-api.txt

     
    7979        release_date = models.DateField()
    8080        num_stars = models.IntegerField()
    8181
     82.. note::
     83    Unless otherwise specified (``null`` or ``default`` attributes) ALL fields
     84    are required to be set in an instance. Any missing field will cause
     85    ``save()`` to raise exceptions (backend-dependent, for example sqlite will
     86    raise ``IntegrityError`` while mysql would raise ``OperationalError``).
     87
    8288Field name restrictions
    8389-----------------------
    8490
Back to Top