1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#3892: Convert GRAPH_MODELS to a Q object

This commit is contained in:
Jeremy Stretch
2020-01-15 16:08:19 -05:00
parent 09bee75cb3
commit f81e7d30e2
5 changed files with 18 additions and 9 deletions

View File

@@ -423,7 +423,7 @@ class Graph(models.Model):
type = models.ForeignKey(
to=ContentType,
on_delete=models.CASCADE,
limit_choices_to=model_names_to_filter_dict(GRAPH_MODELS)
limit_choices_to=GRAPH_MODELS
)
weight = models.PositiveSmallIntegerField(
default=1000