forked from 0x2620/pandora
make sure folder exists
This commit is contained in:
parent
6dc151cb50
commit
825f2a5f63
1 changed files with 1 additions and 0 deletions
|
@ -941,6 +941,7 @@ class Item(models.Model):
|
|||
join_timelines(timelines, self.timeline_prefix)
|
||||
|
||||
def make_poster(self, force=False):
|
||||
ox.makedirs(os.path.join(settings.MEDIA_ROOT,self.path()))
|
||||
if not self.poster or force:
|
||||
self.delete_poster()
|
||||
poster = self.make_siteposter()
|
||||
|
|
Loading…
Reference in a new issue