Initial app and model for LinkedIn integration.
This commit is contained in:
0
lms/djangoapps/linkedin/__init__.py
Normal file
0
lms/djangoapps/linkedin/__init__.py
Normal file
0
lms/djangoapps/linkedin/management/__init__.py
Normal file
0
lms/djangoapps/linkedin/management/__init__.py
Normal file
8
lms/djangoapps/linkedin/management/commands/findusers.py
Normal file
8
lms/djangoapps/linkedin/management/commands/findusers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
class Command(BaseCommand):
|
||||
args = ''
|
||||
help = 'Checks LinkedIn for students that are on LinkedIn'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
print "Hello World!"
|
||||
7
lms/djangoapps/linkedin/models.py
Normal file
7
lms/djangoapps/linkedin/models.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.contrib.auth.models import User
|
||||
from django.db import models
|
||||
|
||||
|
||||
class LinkedIn(models.Model):
|
||||
user = models.OneToOneField(User, primary_key=True)
|
||||
has_linkedin_account = models.NullBooleanField(default=None)
|
||||
@@ -293,3 +293,6 @@ try:
|
||||
from .private import * # pylint: disable=F0401
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
####################### Linkedin ###########################
|
||||
INSTALLED_APPS += ('linkedin',)
|
||||
|
||||
Reference in New Issue
Block a user