GCal Coupling: Management Site - decoupled Email from profile

This commit is contained in:
Martin Bauer
2014-06-20 12:24:01 +02:00
parent 6431764858
commit 290db91956
16 changed files with 410 additions and 29 deletions

View File

@@ -1,6 +1,8 @@
import logging
import uuid
from eventplanner.models import Event
from django.contrib.auth.models import User
from apiclient.channel import Channel
from django.db import models
@@ -9,6 +11,12 @@ from django.db import models
logger = logging.getLogger(__name__)
class UserGCalCoupling( models.Model ):
# For every user in this table the gcal coupling is activated
user = models.OneToOneField( User )
email = models.CharField( max_length=1024 )
class GCalMapping( models.Model ):
"""Mapping between event id at google and local event id"""
gcal_id = models.CharField( max_length=64 )