Code

Ticket #3997: 3997_2.diff

File 3997_2.diff, 656 bytes (added by PhiR, 6 years ago)
Line 
1Index: docs/model-api.txt
2===================================================================
3--- docs/model-api.txt  (revision 7363)
4+++ docs/model-api.txt  (working copy)
5@@ -79,6 +79,12 @@
6         release_date = models.DateField()
7         num_stars = models.IntegerField()
8 
9+.. note::
10+    Unless otherwise specified (``null`` or ``default`` attributes) ALL fields
11+    are required to be set in an instance. Any missing field will cause
12+    ``save()`` to raise exceptions (backend-dependent, for example sqlite will
13+    raise ``IntegrityError`` while mysql would raise ``OperationalError``).
14+
15 Field name restrictions
16 -----------------------
17