From ed8b9ea496a928d33c082ecbd47f55ec89045cc4 Mon Sep 17 00:00:00 2001 From: aarif Date: Thu, 29 Aug 2019 18:31:18 +0500 Subject: [PATCH] python 3 fixes changes made as suggested --- lms/djangoapps/rss_proxy/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/rss_proxy/models.py b/lms/djangoapps/rss_proxy/models.py index 796b538e3b..44ff8bcf87 100644 --- a/lms/djangoapps/rss_proxy/models.py +++ b/lms/djangoapps/rss_proxy/models.py @@ -5,9 +5,11 @@ from __future__ import absolute_import import six from django.db import models +from django.utils.encoding import python_2_unicode_compatible from model_utils.models import TimeStampedModel +@python_2_unicode_compatible class WhitelistedRssUrl(TimeStampedModel): """ Model for persisting RSS feed URLs which are whitelisted @@ -21,5 +23,5 @@ class WhitelistedRssUrl(TimeStampedModel): """ Meta class for this Django model """ app_label = "rss_proxy" - def __unicode__(self): + def __str__(self): return six.text_type(self.url)