Ticket #7986: 7986.patch
File 7986.patch, 839 bytes (added by , 16 years ago) |
---|
-
docs/admin.txt
365 365 class ArticleAdmin(admin.ModelAdmin): 366 366 prepopulated_fields = {"slug": ("title",)} 367 367 368 When set the given fields will use a bit of Javascript to populate from the 369 fields assigned. 368 When set, the given fields will use a bit of Javascript to populate from the 369 fields assigned. The main use for this functionality is to automatically 370 generate the value for SlugFields from one or more other fields. The generated 371 value is produced by concatenating the values of the source fields and then 372 by cleaning and translating the result into a valid slug. 370 373 371 374 ``prepopulated_fields`` doesn't accept DateTimeFields, ForeignKeys nor 372 375 ManyToManyFields.