X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/cc61c5969227c2d49544997ebbf074541029400b..1f20c11056173d0b46b51b43beb4a2d66327e326:/cas_provider/models.py?ds=inline 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)