MCPcopy
hub / github.com/photonixapp/photonix / Camera

Class Camera

photonix/photos/models.py:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88class Camera(UUIDModel, VersionedModel):
89 library = models.ForeignKey(Library, related_name='cameras', on_delete=models.CASCADE)
90 make = models.CharField(max_length=128)
91 model = models.CharField(max_length=128)
92 earliest_photo = models.DateTimeField()
93 latest_photo = models.DateTimeField()
94
95 class Meta:
96 unique_together = [['library', 'make', 'model']]
97 ordering = ['make', 'model']
98
99 def __str__(self):
100 return '{} {}'.format(self.make, self.model)
101
102
103class Lens(UUIDModel, VersionedModel):

Callers 1

record_photoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected