﻿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
14193	prepopulated_fields should concatenate fields in given order	bmihelac	bmihelac	"When generating slug from more than one field order of fields in list should be respected. 

Currently, the order in which fields are rendered in admin form affects the slug creation. 

In the following example, slug would look ""first_name-last_name"" and I would expect ""last_name-first_name"".

{{{
class Person(models.Model):
    first_name = models.CharField(_('First name'), max_length=80)
    last_name = models.CharField(_('Last name'), max_length=80)

class PersonAdmin(admin.ModelAdmin):
    prepopulated_fields = {""slug"": ('last_name', 'first_name')}
}}}

To change the order, one can swap the order in Person model, but it would be more naturally if populate would respect order that is given with tuple.

If you agree, I can make a patch for this."		closed	contrib.admin	dev		fixed			Ready for checkin	1	0	0	0	0	0
