summaryrefslogtreecommitdiff
path: root/app/projects/models/gifs.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-08-15 11:58:34 -0400
committerluxagraf <sng@luxagraf.net>2020-08-15 11:58:34 -0400
commitb66d000ee469539ce7aea557b612c0444177e36d (patch)
tree273547921dc6f9ded2a5681b82514c68e28ba448 /app/projects/models/gifs.py
parentd3e57c1bd17ad3e71810235a672d4782136901a5 (diff)
archived old unused apps and migrated fieldnotes to posts
Diffstat (limited to 'app/projects/models/gifs.py')
-rw-r--r--app/projects/models/gifs.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/app/projects/models/gifs.py b/app/projects/models/gifs.py
deleted file mode 100644
index 25b8734..0000000
--- a/app/projects/models/gifs.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import datetime
-from django.db import models
-
-
-def get_upload_path(self, filename):
- return "images/projects/gifs/%s/%s" % (datetime.datetime.today().strftime("%Y"), filename)
-
-
-class AnimatedGif(models.Model):
- title = models.CharField(max_length=254)
- gif = models.ImageField(upload_to=get_upload_path)
- slug = models.SlugField()
- date_created = models.DateField('Date Created')
- music_ogg = models.FileField(upload_to=get_upload_path, blank=True, null=True)
- music_mp3 = models.FileField(upload_to=get_upload_path, blank=True, null=True)
-
- class Meta:
- verbose_name_plural = "Animated Gifs"
- app_label = 'projects'
- ordering = ('-date_created',)
-
- def __str__(self):
- return self.slug
-
- def get_absolute_url(self):
- return '/projects/gifs/%s/' % (self.slug)