Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Valentin Samir
django-cas-server
Commits
ca41c067
Commit
ca41c067
authored
Apr 29, 2018
by
Valentin Samir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap some long lines
parent
290701e0
Pipeline
#719
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
cas_server/models.py
cas_server/models.py
+25
-5
No files found.
cas_server/models.py
View file @
ca41c067
...
...
@@ -641,7 +641,11 @@ class Username(models.Model):
#: ForeignKey to a :class:`ServicePattern`. :class:`Username` instances for a
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.usernames`
#: attribute.
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"usernames"
,
on_delete
=
models
.
CASCADE
)
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"usernames"
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
return
self
.
value
...
...
@@ -676,7 +680,11 @@ class ReplaceAttributName(models.Model):
#: ForeignKey to a :class:`ServicePattern`. :class:`ReplaceAttributName` instances for a
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.attributs`
#: attribute.
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"attributs"
,
on_delete
=
models
.
CASCADE
)
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"attributs"
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
if
not
self
.
replace
:
...
...
@@ -711,7 +719,11 @@ class FilterAttributValue(models.Model):
#: ForeignKey to a :class:`ServicePattern`. :class:`FilterAttributValue` instances for a
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.filters`
#: attribute.
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"filters"
,
on_delete
=
models
.
CASCADE
)
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"filters"
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
return
u
"%s %s"
%
(
self
.
attribut
,
self
.
pattern
)
...
...
@@ -748,7 +760,11 @@ class ReplaceAttributValue(models.Model):
#: ForeignKey to a :class:`ServicePattern`. :class:`ReplaceAttributValue` instances for a
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.replacements`
#: attribute.
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"replacements"
,
on_delete
=
models
.
CASCADE
)
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"replacements"
,
on_delete
=
models
.
CASCADE
)
def
__str__
(
self
):
return
u
"%s %s %s"
%
(
self
.
attribut
,
self
.
pattern
,
self
.
replace
)
...
...
@@ -771,7 +787,11 @@ class Ticket(JsonAttributes):
service
=
models
.
TextField
()
#: ForeignKey to a :class:`ServicePattern`. The :class:`ServicePattern` corresponding to
#: :attr:`service`. Use :meth:`ServicePattern.validate` to find it.
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"%(class)s"
,
on_delete
=
models
.
CASCADE
)
service_pattern
=
models
.
ForeignKey
(
ServicePattern
,
related_name
=
"%(class)s"
,
on_delete
=
models
.
CASCADE
)
#: Date of the ticket creation
creation
=
models
.
DateTimeField
(
auto_now_add
=
True
)
#: A boolean. ``True`` if the user has just renew his authentication
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment