Files
edx-platform/openedx/core/djangoapps/ccxcon/models.py
Awais Qureshi 56466ba329 chore: Django3 has removed python_2_unicode_compatible.
Execute the codemodes.
2021-07-28 20:38:19 +05:00

31 lines
702 B
Python

"""
Models for the ccxcon
"""
from django.db import models
class CCXCon(models.Model):
"""
Definition of the CCXCon model.
Stores the url and the oauth key to access the REST APIs on the CCX Connector.
.. no_pii:
"""
url = models.URLField(unique=True, db_index=True)
oauth_client_id = models.CharField(max_length=255)
oauth_client_secret = models.CharField(max_length=255)
title = models.CharField(max_length=255)
class Meta:
app_label = 'ccxcon'
verbose_name = 'CCX Connector'
verbose_name_plural = 'CCX Connectors'
def __repr__(self):
return f'<CCXCon {self.title}>'
def __str__(self):
return self.title