Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

return text in __str__ methods for py2/3 #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aldryn_mailchimp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SubscriptionPlugin(CMSPlugin):
'Save the user\'s language based on the page language'))

def __str__(self):
return unicode(self.list_id)
return self.list_id


class CampaignManager(models.Manager):
Expand All @@ -40,7 +40,7 @@ class Meta(Sortable.Meta):
verbose_name_plural = _('Categories')

def __str__(self):
return unicode(self.name)
return self.name


@python_2_unicode_compatible
Expand Down