Fix graph:type choices under /api/extras/_choices/

This commit is contained in:
Jeremy Stretch
2020-01-10 12:18:56 -05:00
parent 830a51d9f5
commit 69a696a8d6
4 changed files with 12 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ class Migration(migrations.Migration):
model_name='graph',
name='type',
field=models.ForeignKey(
limit_choices_to={'model__in': ['device', 'interface', 'provider', 'site']},
limit_choices_to={'model__in': ['provider', 'device', 'interface', 'site']},
on_delete=django.db.models.deletion.CASCADE,
to='contenttypes.ContentType'
),