Wrap some long lines
This commit is contained in:
parent
290701e07f
commit
ca41c067b9
@ -641,7 +641,11 @@ class Username(models.Model):
|
|||||||
#: ForeignKey to a :class:`ServicePattern`. :class:`Username` instances for a
|
#: ForeignKey to a :class:`ServicePattern`. :class:`Username` instances for a
|
||||||
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.usernames`
|
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.usernames`
|
||||||
#: attribute.
|
#: 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):
|
def __str__(self):
|
||||||
return self.value
|
return self.value
|
||||||
@ -676,7 +680,11 @@ class ReplaceAttributName(models.Model):
|
|||||||
#: ForeignKey to a :class:`ServicePattern`. :class:`ReplaceAttributName` instances for a
|
#: ForeignKey to a :class:`ServicePattern`. :class:`ReplaceAttributName` instances for a
|
||||||
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.attributs`
|
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.attributs`
|
||||||
#: attribute.
|
#: 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):
|
def __str__(self):
|
||||||
if not self.replace:
|
if not self.replace:
|
||||||
@ -711,7 +719,11 @@ class FilterAttributValue(models.Model):
|
|||||||
#: ForeignKey to a :class:`ServicePattern`. :class:`FilterAttributValue` instances for a
|
#: ForeignKey to a :class:`ServicePattern`. :class:`FilterAttributValue` instances for a
|
||||||
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.filters`
|
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.filters`
|
||||||
#: attribute.
|
#: 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):
|
def __str__(self):
|
||||||
return u"%s %s" % (self.attribut, self.pattern)
|
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
|
#: ForeignKey to a :class:`ServicePattern`. :class:`ReplaceAttributValue` instances for a
|
||||||
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.replacements`
|
#: :class:`ServicePattern` are accessible thought its :attr:`ServicePattern.replacements`
|
||||||
#: attribute.
|
#: 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):
|
def __str__(self):
|
||||||
return u"%s %s %s" % (self.attribut, self.pattern, self.replace)
|
return u"%s %s %s" % (self.attribut, self.pattern, self.replace)
|
||||||
@ -771,7 +787,11 @@ class Ticket(JsonAttributes):
|
|||||||
service = models.TextField()
|
service = models.TextField()
|
||||||
#: ForeignKey to a :class:`ServicePattern`. The :class:`ServicePattern` corresponding to
|
#: ForeignKey to a :class:`ServicePattern`. The :class:`ServicePattern` corresponding to
|
||||||
#: :attr:`service`. Use :meth:`ServicePattern.validate` to find it.
|
#: :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
|
#: Date of the ticket creation
|
||||||
creation = models.DateTimeField(auto_now_add=True)
|
creation = models.DateTimeField(auto_now_add=True)
|
||||||
#: A boolean. ``True`` if the user has just renew his authentication
|
#: A boolean. ``True`` if the user has just renew his authentication
|
||||||
|
Loading…
Reference in New Issue
Block a user