X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/979cc8e80c887caa8a91a86dd2ed2971bfe2bff5..488fe796f2903c7580c4df487de4233b41dbb384:/cas_provider/models.py?ds=sidebyside 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'