Changeset 6566
- Timestamp:
- 10/20/07 07:35:10 (11 months ago)
- Files:
-
- django/trunk/docs/model-api.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/model-api.txt
r6381 r6566 150 150 provide consistency throughout Django. There is full legacy support for 151 151 the old ``maxlength`` argument, but ``max_length`` is preferred. 152 152 153 153 ``CommaSeparatedIntegerField`` 154 154 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 679 679 If ``True``, this field must be unique throughout the table. 680 680 681 This is enforced at the database level and at the Django admin-form level. 681 This is enforced at the database level and at the Django admin-form level. If 682 you try to add save a model with a duplicate value in a ``unique`` field, a 683 ``django.db.IntegrityError`` will be raised by the model's ``save()`` method. 682 684 683 685 ``unique_for_date`` … … 1585 1587 Set ``list_filter`` to activate filters in the right sidebar of the change list 1586 1588 page of the admin. This should be a list of field names, and each specified 1587 field should be either a ``BooleanField``, ``CharField``, ``DateField``, 1588 ``DateTimeField``, ``IntegerField`` or ``ForeignKey``. 1589 field should be either a ``BooleanField``, ``CharField``, ``DateField``, 1590 ``DateTimeField``, ``IntegerField`` or ``ForeignKey``. 1589 1591 1590 1592 This example, taken from the ``django.contrib.auth.models.User`` model, shows
