X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/cc61c5969227c2d49544997ebbf074541029400b..d49f1c192506e97590f1c253a21f6b6e95228ea5:/cas_provider/models.py diff --git a/cas_provider/models.py b/cas_provider/models.py index 94023b7..39641a1 100644 --- a/cas_provider/models.py +++ b/cas_provider/models.py @@ -1,6 +1,7 @@ from django.db import models from django.contrib.auth.models import User + class ServiceTicket(models.Model): user = models.ForeignKey(User) service = models.URLField(verify_exists=False) @@ -9,10 +10,11 @@ class ServiceTicket(models.Model): def __unicode__(self): return "%s (%s) - %s" % (self.user.username, self.service, self.created) - + + class LoginTicket(models.Model): ticket = models.CharField(max_length=32) created = models.DateTimeField(auto_now=True) def __unicode__(self): - return "%s - %s" % (self.ticket, self.created) \ No newline at end of file + return "%s - %s" % (self.ticket, self.created)