From ab8055b5cab2523d925f59c65bc38df103a26991 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 2 Dec 2020 15:02:12 -0500 Subject: deleted old apps and media --- app/unused_apps/projects/models/gifs.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 app/unused_apps/projects/models/gifs.py (limited to 'app/unused_apps/projects/models/gifs.py') diff --git a/app/unused_apps/projects/models/gifs.py b/app/unused_apps/projects/models/gifs.py deleted file mode 100644 index 25b8734..0000000 --- a/app/unused_apps/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) -- cgit v1.2.3-70-g09d2