Skip to content

Commit

Permalink
unicode test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Jul 2, 2018
1 parent 34e1823 commit d91659b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions safedelete/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class Category(SafeDeleteModel):
blank=True
)

def __str__(self):
return self.name


# Explicitly use SafeDeleteModel instead of SafeDeleteModel to test both
class Article(SafeDeleteModel):
Expand Down
4 changes: 3 additions & 1 deletion safedelete/tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import unicode_literals

from django.contrib import admin
from django.contrib.admin.sites import AdminSite
from django.contrib.admin.views.main import ChangeList
Expand Down Expand Up @@ -28,7 +30,7 @@ def setUp(self):
self.author = Author.objects.create()

self.categories = (
Category.objects.create(),
Category.objects.create(name='é'),
Category.objects.create(),
Category.objects.create(),
)
Expand Down

0 comments on commit d91659b

Please sign in to comment.