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

Closes #6149: Support image attachments for locations

This commit is contained in:
jeremystretch
2021-04-13 11:39:04 -04:00
parent e5602abee0
commit b1d20d3228
4 changed files with 19 additions and 0 deletions

View File

@@ -314,6 +314,9 @@ class Location(NestedGroupModel):
max_length=200,
blank=True
)
images = GenericRelation(
to='extras.ImageAttachment'
)
csv_headers = ['site', 'parent', 'name', 'slug', 'description']
clone_fields = ['site', 'parent', 'description']