Add automation module to settings and update app labels
- Registered the new AutomationConfig in the INSTALLED_APPS of settings.py. - Set the app_label for AutomationRule and ScheduledTask models to 'automation' for better organization and clarity in the database schema.
This commit is contained in:
@@ -74,6 +74,7 @@ class AutomationRule(SiteSectorBaseModel):
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
app_label = 'automation'
|
||||
db_table = 'igny8_automation_rules'
|
||||
ordering = ['-created_at']
|
||||
verbose_name = 'Automation Rule'
|
||||
@@ -125,6 +126,7 @@ class ScheduledTask(AccountBaseModel):
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
app_label = 'automation'
|
||||
db_table = 'igny8_scheduled_tasks'
|
||||
ordering = ['-scheduled_at']
|
||||
verbose_name = 'Scheduled Task'
|
||||
|
||||
Reference in New Issue
Block a user