Remove Django 0.x support from ipr/feeds.py
- Legacy-Id: 6773
This commit is contained in:
parent
6d94351553
commit
f7bed5d0aa
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue