From: Radek Czajka Date: Tue, 15 Nov 2011 13:17:00 +0000 (+0100) Subject: fixes X-Git-Url: https://git.mdrn.pl/turniej.git/commitdiff_plain/574e798cbd5cd6311fe0d5ba857c216939ed71dd fixes --- diff --git a/apps/poetry/models.py b/apps/poetry/models.py index b0d15b1..ef8bf94 100644 --- a/apps/poetry/models.py +++ b/apps/poetry/models.py @@ -30,7 +30,7 @@ class Poet(models.Model): stdout=subprocess.PIPE, stderr=subprocess.PIPE) os.chdir(curdir) stdout, stderr = proc.communicate() - text = stdout.decode("utf-8")[:1000] + text = unicode(stdout, "utf-8", errors="ignore")[:1000] slug = get_hash(text) title = '' if self.first_line_title: diff --git a/apps/poetry/templates/poetry/main.html b/apps/poetry/templates/poetry/main.html index 76fdf09..9e0ea4d 100644 --- a/apps/poetry/templates/poetry/main.html +++ b/apps/poetry/templates/poetry/main.html @@ -29,22 +29,6 @@ Turniej Elektrybałtów {% for poet in poets %}
  • {{ poet }} (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • -
  • {{ poet }} - (Twórz-że!)
  • {% endfor %}