From 853c530a0296eae247313cd798cbe1c73fb58a80 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 21 Mar 2016 11:24:36 -0400 Subject: Added audio manytomany to sightings to make admin easier --- app/birds/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/birds/models.py') diff --git a/app/birds/models.py b/app/birds/models.py index 81e0ca7..af31c3f 100644 --- a/app/birds/models.py +++ b/app/birds/models.py @@ -91,9 +91,9 @@ class BirdSighting(models.Model): point = models.PointField() location = models.ForeignKey(Location, blank=True) date = models.DateTimeField('Date', default=timezone.now) - image = models.FileField(upload_to=get_upload_path, null=True, blank=True) seen_by = models.ManyToManyField(User) images = models.ManyToManyField(LuxImage) + audio = models.ManyToManyField(BirdAudio) class Meta: verbose_name_plural = 'Bird Sighting' -- cgit v1.2.3-70-g09d2