|
|
@@ -1,3 +1,4 @@
|
|
|
+from django.contrib.contenttypes.fields import GenericRelation
|
|
|
from django.core.exceptions import ValidationError
|
|
|
from django.db import models
|
|
|
from django.urls import reverse
|
|
|
@@ -202,6 +203,9 @@ class Circuit(PrimaryModel):
|
|
|
comments = models.TextField(
|
|
|
blank=True
|
|
|
)
|
|
|
+ images = GenericRelation(
|
|
|
+ to='extras.ImageAttachment'
|
|
|
+ )
|
|
|
|
|
|
# Cache associated CircuitTerminations
|
|
|
termination_a = models.ForeignKey(
|