Skip to content

Commit

Permalink
Fix 2 bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
grigorescu committed Jan 5, 2024
1 parent df1b283 commit 23bbcb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scram/route_manager/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class WebSocketMessage(models.Model):
msg_type = models.CharField("The type of the message", max_length=50)
msg_data = models.JSONField("The JSON payload. See also msg_data_route_field.", default=dict)
msg_data_route_field = models.CharField(
"The key in the JSON payload whose value will contain the route being acted on."
"The key in the JSON payload whose value will contain the route being acted on.", max_length=25
)

def __str__(self):
Expand All @@ -58,11 +58,11 @@ class WebSocketSequenceElement(models.Model):
default=0,
)

VERB_CHOICES = {
"A": "Add",
"C": "Check",
"R": "Remove",
}
VERB_CHOICES = [
("A", "Add"),
("C", "Check"),
("R", "Remove"),
]
verb = models.CharField(max_length=1, choices=VERB_CHOICES)

action_type = models.ForeignKey("ActionType", on_delete=models.CASCADE)
Expand Down

0 comments on commit 23bbcb4

Please sign in to comment.