Skip to content

Commit

Permalink
fix: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
teehamaral committed Jul 30, 2024
1 parent cf7c13b commit 376e1e5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
Binary file modified mailroom_test.dump
Binary file not shown.
8 changes: 8 additions & 0 deletions temba/flows/migrations/0278_squashed.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ class Migration(migrations.Migration):
("path", temba.utils.models.JSONAsTextField(default=list, null=True)),
("current_node_uuid", models.UUIDField(null=True)),
("delete_from_results", models.BooleanField(null=True)),
(
"events",
temba.utils.models.fields.JSONField(
decoder=temba.utils.json.TembaDecoder,
encoder=temba.utils.json.TembaEncoder,
null=True,
),
),
],
bases=(models.Model,),
),
Expand Down
4 changes: 4 additions & 0 deletions temba/flows/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ def create_single_message(cls, org, user, message, base_language):
def engine_type(self):
return Flow.GOFLOW_TYPES.get(self.flow_type, "")

@classmethod
def label_to_slug(cls, label):
return regex.sub(r"[^a-z0-9]+", "_", label.lower() if label else "", regex.V0)

@classmethod
def create_join_group(cls, org, user, group, response=None, start_flow=None):
"""
Expand Down
11 changes: 11 additions & 0 deletions temba/orgs/migrations/0059_squashed_ccl_0059_0061.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,15 @@ class Migration(migrations.Migration):
field=models.CharField(blank=True, max_length=255, null=True, verbose_name="Authy ID"),
),
migrations.RunPython(code=add_parent_org_admins, reverse_code=remove_parent_org_admins),
migrations.AddField(
model_name="usersettings",
name="tel",
field=models.CharField(
blank=True,
help_text="Phone number for testing and recording voice flows",
max_length=16,
null=True,
verbose_name="Phone Number",
),
),
]

0 comments on commit 376e1e5

Please sign in to comment.