﻿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
12835	Setting date fields on new admin inlines does not work.	jbronn	nobody	"The problem is that the date and time form fields do not autocomplete when clicking the ""Today"" link or selecting a date from the calendar widget.  This occurs only on newly added inline models, e.g., after hitting the ""Add another"" link.  Example code below may be used to reproduce this bug.

models.py:
{{{
#!python
from django.db import models

class Place(models.Model):
    name = models.CharField(max_length=32)
    def __unicode__(self): return self.name

class Person(models.Model):
    name = models.CharField(max_length=32)
    dob = models.DateTimeField()
    place = models.ForeignKey(Place)
    def __unicode__(self): return self.name
}}}

admin.py:
{{{
#!python
from django.contrib import admin
from models import Person, Place

class PersonInline(admin.StackedInline):
    model = Person

class PlaceAdmin(admin.ModelAdmin):
    inlines = [
        PersonInline,
        ]

admin.site.register(Person)
admin.site.register(Place, PlaceAdmin)
}}}"		closed	contrib.admin	dev		duplicate	admin inline date		Unreviewed	0	0	0	0	0	0
