~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlscreens/models.py

  • Committer: franku
  • Date: 2019-04-11 15:06:09 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: somal@arcor.de-20190411150609-801l72ffxgr6gkui
converted to python 3.6 using 2to3 script

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
from django.template.defaultfilters import slugify
4
4
from PIL import Image
5
5
from PIL.Image import core as _imaging
6
 
from cStringIO import StringIO
 
6
from io import StringIO
7
7
from django.core.files.uploadedfile import SimpleUploadedFile, UploadedFile
8
8
from django.core.files.storage import FileSystemStorage
9
9
import os
39
39
        return super(Category, self).save(*args, **kwargs)
40
40
 
41
41
    def __unicode__(self):
42
 
        return u"%s" % self.name
 
42
        return "%s" % self.name
43
43
 
44
44
 
45
45
def screenshot_path(instance, filename):
115
115
 
116
116
 
117
117
    def __unicode__(self):
118
 
        return u"%s:%s" % (self.category.name, self.name)
 
118
        return "%s:%s" % (self.category.name, self.name)