'If the date for unique_for_* constraints is excluded from the
ModelForm (in this case \'posted\' has editable=False, then the
constraint should be ignored.'

def test_unique_for_date_in_exclude(self):

    p = DateTimePost.objects.create(title=u'Django    1.0    is    released', slug=u'Django    1.0', subtitle=u'Finally', posted=datetime.datetime(2008, 9, 3, 10, 10, 1))
    form = DateTimePostForm({u'title': u'Django    1.0    is    released', u'posted': u'2008-09-03'})
    self.assertTrue(form.is_valid())
    form = DateTimePostForm({u'slug': u'Django    1.0', u'posted': u'2008-01-01'})
    self.assertTrue(form.is_valid())
    form = DateTimePostForm({u'subtitle': u'Finally', u'posted': u'2008-09-30'})
    self.assertTrue(form.is_valid())
