diff options
author | luxagraf <sng@luxagraf.net> | 2016-03-21 11:24:36 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-03-21 11:24:36 -0400 |
commit | 853c530a0296eae247313cd798cbe1c73fb58a80 (patch) | |
tree | b5681e304e35101bbc2228e52842d558b460d8cb /app/birds/models.py | |
parent | dfc3e41335b71abdadec30538f0f07a8665368b3 (diff) |
Added audio manytomany to sightings to make admin easier
Diffstat (limited to 'app/birds/models.py')
-rw-r--r-- | app/birds/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
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' |