diff options
Diffstat (limited to 'servo/models/device.py')
-rw-r--r-- | servo/models/device.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/models/device.py b/servo/models/device.py index 148684d..6d20173 100644 --- a/servo/models/device.py +++ b/servo/models/device.py @@ -206,7 +206,7 @@ class Device(models.Model): @property def tag_choices(self): - return TaggedItem.objects.filter(ref="device").distinct("tag") + return TaggedItem.objects.filter(content_type__model="device").distinct("tag") def add_tags(self, tags): tags = [x for x in tags if x != ''] # Filter out empty tags |