diff --git a/conservancy/usethesource/models.py b/conservancy/usethesource/models.py index 6b070e5443674e96c11d27e581ac69f51a4affc3..5ad68be361914fc094a18908664b3d08157ebc3e 100644 --- a/conservancy/usethesource/models.py +++ b/conservancy/usethesource/models.py @@ -67,3 +67,13 @@ class Comment(models.Model): class Meta: ordering = ['id'] + + +class SourceOffer(models.Model): + time = models.DateTimeField(auto_now_add=True, null=True) + vendor = models.CharField('Vendor name', max_length=50) + device = models.CharField('Device name', max_length=50) + photo = models.ImageField(upload_to='usethesource/offers') + + def __str__(self): + return f'{self.vendor} {self.device}'