ruff: Fix DJ012 Order of model's inner classes, methods, and fields.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-04-12 13:40:35 -07:00
committed by Tim Abbott
parent cdaf12da44
commit 0a3dc8a944
3 changed files with 45 additions and 45 deletions

View File

@@ -186,12 +186,12 @@ class Confirmation(models.Model):
REALM_REACTIVATION = 8
type = models.PositiveSmallIntegerField()
def __str__(self) -> str:
return f"{self.content_object!r}"
class Meta:
unique_together = ("type", "confirmation_key")
def __str__(self) -> str:
return f"{self.content_object!r}"
class ConfirmationType:
def __init__(