Files
edx-platform/openedx/core/djangoapps/ccxcon/models.py
Giovanni Di Milia bb36ab013f Added CCXCon app
The CCXCon app is used to push course updated to the CCXCon
 externale service.
2016-01-20 10:47:37 -05:00

32 lines
785 B
Python

"""
Models for the ccxcon
"""
from django.db import models
class CCXCon(models.Model):
"""
The definition of the CCXCon model.
This will store the url and the oauth key to access the REST APIs
on the CCX Connector.
"""
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(object):
app_label = 'ccxcon'
verbose_name = 'CCX Connector'
verbose_name_plural = 'CCX Connectors'
def __repr__(self):
return '<CCXCon {}>'.format(self.title)
def __str__(self):
return self.title
def __unicode__(self):
return unicode(self.__str__())