Do not keep attribute aggregator policies in migration script
This commit is contained in:
parent
efdc1e81b7
commit
a06c0a5fcd
|
@ -49,16 +49,6 @@ class Command(BaseCommand):
|
|||
Group.permissions = MockManagerDescriptorEmpty()
|
||||
for group in Group.objects.all():
|
||||
yield group
|
||||
# serialize attribute item, lists, and sources
|
||||
for at_item in AttributeItem.objects.select_related():
|
||||
yield at_item
|
||||
for at_list in AttributeList.objects.select_related():
|
||||
yield at_list
|
||||
for at_source in AttributeSource.objects.select_related():
|
||||
yield at_source
|
||||
# serialize attributepolicy
|
||||
for at_policy in AttributePolicy.objects.select_related():
|
||||
yield at_policy
|
||||
# serialize policiees & providers
|
||||
for ppolicy in LibertyProviderPolicy.objects.select_related():
|
||||
yield ppolicy
|
||||
|
@ -67,6 +57,7 @@ class Command(BaseCommand):
|
|||
for provider in LibertyProvider.objects.select_related():
|
||||
yield provider
|
||||
for sp in LibertyServiceProvider.objects.select_related():
|
||||
sp.attribute_policy = None
|
||||
yield sp
|
||||
assert user_model is not User, "You don't need this script, user model is django.contrib.auth.models.User"
|
||||
# serialize user and user attributes
|
||||
|
|
Reference in New Issue