[django/django] cb1523: Fixed #21798 -- Added check for DateTime mutually ...

3 views
Skip to first unread message

GitHub

unread,
May 16, 2014, 6:01:17 AM5/16/14
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: cb15231888df2545356ad307eaea07f36aa0e8e0
https://github.com/django/django/commit/cb15231888df2545356ad307eaea07f36aa0e8e0
Author: Daniel Pyrathon <pir...@gmail.com>
Date: 2014-05-16 (Fri, 16 May 2014)

Changed paths:
M django/db/models/fields/__init__.py
M docs/ref/checks.txt
M docs/ref/models/fields.txt
M tests/invalid_models_tests/test_ordinary_fields.py

Log Message:
-----------
Fixed #21798 -- Added check for DateTime mutually exclusive options

Added DateTimeCheckMixin to avoid the use of default, auto_now, and
auto_now_add options together. Added the fields.E151 Error that is raised
if one or more of these options are used together.


Reply all
Reply to author
Forward
0 new messages