Files
edx-platform/lms/djangoapps/rss_proxy/models.py
2021-02-22 12:58:09 +05:00

25 lines
619 B
Python

"""
Models for the rss_proxy djangoapp.
"""
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
for proxying via this rss_proxy djangoapp.
.. no_pii:
"""
url = models.CharField(max_length=255, unique=True, db_index=True)
class Meta:
""" Meta class for this Django model """
app_label = "rss_proxy"
def __str__(self):
return str(self.url)