Remove Django 0.x support from ipr/feeds.py

- Legacy-Id: 6773
This commit is contained in:
Ole Laursen 2013-11-29 11:48:47 +00:00
parent 6d94351553
commit f7bed5d0aa

View file

@ -24,12 +24,7 @@ class LatestIprDisclosures(Feed):
def item_author_name(self, item):
s = item.get_submitter()
if s:
if isinstance(s.name, unicode):
# for django.VERSION[0] > 0
return s.name
else:
# for django.VERSION[0] == 0
return unicode(s.name, encoding='utf-8', errors='replace')
return s.name
return None
def item_author_email(self, item):
s = item.get_submitter()