Ticket #7986: 7986.patch

File 7986.patch, 839 bytes (added by frasern, 7 years ago)
  • docs/admin.txt

     
    365365    class ArticleAdmin(admin.ModelAdmin):
    366366        prepopulated_fields = {"slug": ("title",)}
    367367
    368 When set the given fields will use a bit of Javascript to populate from the
    369 fields assigned.
     368When set, the given fields will use a bit of Javascript to populate from the
     369fields assigned. The main use for this functionality is to automatically
     370generate the value for SlugFields from one or more other fields. The generated
     371value is produced by concatenating the values of the source fields and then
     372by cleaning and translating the result into a valid slug.
    370373
    371374``prepopulated_fields`` doesn't accept DateTimeFields, ForeignKeys nor
    372375ManyToManyFields.
Back to Top