account, schduels, timezone profile and many imporant updates

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-19 15:37:03 +00:00
parent 618ed8b8c6
commit e7219a2390
28 changed files with 919 additions and 358 deletions

View File

@@ -0,0 +1,43 @@
# Generated by Django 5.2.9 on 2026-01-19 00:00
from django.db import migrations
def add_team_invite_template(apps, schema_editor):
EmailTemplate = apps.get_model('system', 'EmailTemplate')
EmailTemplate.objects.get_or_create(
template_name='team_invite',
defaults={
'template_path': 'emails/team_invite.html',
'display_name': 'Team Invitation',
'description': 'Sent when a team member is invited to join an account',
'template_type': 'auth',
'default_subject': "You're invited to join IGNY8",
'required_context': ['inviter_name', 'invited_name', 'account_name', 'reset_url', 'frontend_url'],
'sample_context': {
'inviter_name': 'Alex Johnson',
'invited_name': 'Jamie Lee',
'account_name': 'Acme Co',
'reset_url': 'https://app.igny8.com/reset-password?token=example',
'frontend_url': 'https://app.igny8.com',
},
'is_active': True,
}
)
def remove_team_invite_template(apps, schema_editor):
EmailTemplate = apps.get_model('system', 'EmailTemplate')
EmailTemplate.objects.filter(template_name='team_invite').delete()
class Migration(migrations.Migration):
dependencies = [
('system', '0025_delete_accountintegrationoverride'),
]
operations = [
migrations.RunPython(add_team_invite_template, remove_team_invite_template),
]