﻿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
28205	Document that ModelAdmin.prepopulated_fields only works on empty forms	Ju	Botond Béres	"ModelAdmin.prepopulated_fields auto generating works only while creating new records but not while editing them.

{{{

from django.db import models

class Item(models.Model):
    title = models.CharField(max_length=200, blank=False)
    slug = models.SlugField(max_length=200)

}}}

{{{

from django.contrib import admin
from .models import Item

class ItemAdmin(admin.ModelAdmin):
   
  prepopulated_fields = {""slug"": (""title"",)}

admin.site.register(Item, ItemAdmin)
}}}
"	Cleanup/optimization	closed	Documentation	1.11	Normal	fixed	prepopulated_fields		Accepted	1	0	0	0	0	0
