X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/cc61c5969227c2d49544997ebbf074541029400b..08d3502c8f9a169713122c681d86eb16d9f8c1e6:/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)