﻿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
23628	AlterModelOptions should check for changes	no	nobody	"Consider the following model:

{{{
#!python
PERM_DEFS = {
   ('perm1', 'Desc1') : 123,
   ('perm2', 'Desc2') : 321
}
class Spam(models.Model):
    class Meta:
        permissions = list(PERM_DEFS.keys())

}}}

Currently, running `makemigrations` will always generate a new migration even though the permissions list doesn't change. Perhaps the inspector could do a `set(old_attr) == set(new_attr)` type operation on list style attributes such as `permissions` and `default_permissions`.

Current workaround is: `permissions = list(sorted(PERM_DEFS.keys()))`"	Bug	closed	Migrations	1.7	Normal	wontfix		github@…	Unreviewed	0	0	0	0	0	0
