X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/288b97cb037b17ccab0c9c11ec987ad124e350d1..488fe796f2903c7580c4df487de4233b41dbb384:/cas_provider/models.py diff --git a/cas_provider/models.py b/cas_provider/models.py index 43463d5..12fed4c 100644 --- a/cas_provider/models.py +++ b/cas_provider/models.py @@ -65,7 +65,9 @@ class LoginTicket(BaseTicket): class ProxyGrantingTicket(BaseTicket): - serviceTicket = models.ForeignKey(ServiceTicket, null=True) + user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_('user')) + service = models.URLField(_('service'), null=True) + pgt = models.ForeignKey('self', null=True) pgtiou = models.CharField(max_length=256, verbose_name=_('PGTiou')) prefix = 'PGT'