﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15688	unique_for_date validation doesn't run with admin readonly_fields	Jacob	nobody	"

Model:

{{{
import datetime
from django.db import models

class Entry(models.Model):
   title = models.CharField(max_length=255)
   slug = models.SlugField(unique_for_date='created')
   created = models.DateField(default=datetime.date.today)
}}}

Admin:

{{{
from django.contrib import admin
from .models import Entry

admin.site.register(Entry, readonly_fields=['created'])
}}}

With this, I'm able to create multiple entries with the same `created` date. If I remove `created` field from `readonly_fields`validation fires as expected.

Also see [http://groups.google.com/group/django-users/browse_thread/thread/2e35cc9eb522ccc7 this django-users thread] reporting something similar with `auto_now` and `editable=False`."	Uncategorized	closed	contrib.admin	1.3	Normal	duplicate	admin readonly_fields unique_for unique_for_date		Unreviewed	0	0	0	0	0	0
