@@ -77,6 +77,7 @@ class PythonModule(models.Model):
7777 update_task (PeriodicTask): The task associated with updating the module.
7878 health_check_schedule (CrontabSchedule): The schedule for health checks.
7979 """
80+
8081 module = models .CharField (max_length = 120 , db_index = True )
8182 base_path = models .CharField (
8283 max_length = 120 , db_index = True , choices = PythonModuleBasePaths .choices
@@ -243,7 +244,8 @@ class Tag(models.Model):
243244 Attributes:
244245 label (str): The label of the tag.
245246 color (str): The color of the tag in hex format.
246- """
247+ """
248+
247249 label = models .CharField (
248250 max_length = 50 ,
249251 blank = False ,
@@ -273,6 +275,7 @@ class Comment(models.Model):
273275 created_at (datetime): The date and time when the comment was created.
274276 updated_at (datetime): The date and time when the comment was last updated.
275277 """
278+
276279 # make the user null if the user is deleted
277280 user = models .ForeignKey (
278281 settings .AUTH_USER_MODEL ,
@@ -317,6 +320,7 @@ class Job(MP_Node):
317320 analyzers_report (ManyToManyField): The analyzers report for the job.
318321 analyzers_started (ManyToManyField): The analyzers started for the job.
319322 """
323+
320324 objects = JobQuerySet .as_manager ()
321325
322326 class Meta :
@@ -774,6 +778,7 @@ class Parameter(models.Model):
774778 required (bool): Indicates if the parameter is mandatory.
775779 python_module (ForeignKey): The Python module associated with the parameter.
776780 """
781+
777782 objects = ParameterQuerySet .as_manager ()
778783
779784 name = models .CharField (null = False , blank = False , max_length = 50 )
@@ -830,6 +835,7 @@ class PluginConfig(OwnershipAbstractModel):
830835 ingestor_config (ForeignKey): The ingestor configuration this config belongs to.
831836 pivot_config (ForeignKey): The pivot configuration this config belongs to.
832837 """
838+
833839 objects = PluginConfigQuerySet .as_manager ()
834840 value = models .JSONField (blank = True , null = True )
835841
@@ -1046,6 +1052,7 @@ class OrganizationPluginConfiguration(models.Model):
10461052 rate_limit_timeout (DurationField): The duration for which rate limits apply.
10471053 rate_limit_enable_task (ForeignKey): The task to re-enable the configuration after a rate limit.
10481054 """
1055+
10491056 objects = OrganizationPluginConfigurationQuerySet .as_manager ()
10501057 content_type = models .ForeignKey (
10511058 ContentType ,
@@ -1074,7 +1081,7 @@ class Meta:
10741081 unique_together = [("object_id" , "organization" , "content_type" )]
10751082
10761083 def __str__ (self ):
1077- """Returns a string representation of the organization plugin configuration."""
1084+ """Returns a string representation of the organization plugin configuration."""
10781085 return f"{ self .config } ({ self .organization } )"
10791086
10801087 def disable_for_rate_limit (self ):
@@ -1166,6 +1173,7 @@ class ListCachable(models.Model):
11661173 delete_class_cache_keys(user: User): Deletes cached keys for the class.
11671174 python_path: Returns the Python path of the class.
11681175 """
1176+
11691177 class Meta :
11701178 abstract = True
11711179
@@ -1204,6 +1212,7 @@ class AbstractConfig(ListCachable):
12041212 disabled (bool): Indicates if the configuration is disabled.
12051213 orgs_configuration (GenericRelation): The organization configurations for this config.
12061214 """
1215+
12071216 objects = AbstractConfigQuerySet .as_manager ()
12081217 name = models .CharField (
12091218 max_length = 100 ,
@@ -1334,6 +1343,7 @@ class AbstractReport(models.Model):
13341343 parameters (JSONField): The parameters used for generating the report.
13351344 sent_to_bi (bool): Indicates if the report has been sent to business intelligence (BI) systems.
13361345 """
1346+
13371347 objects = AbstractReportQuerySet .as_manager ()
13381348 # constants
13391349 Status = ReportStatus
@@ -1421,6 +1431,7 @@ class PythonConfig(AbstractConfig):
14211431 health_check_task (OneToOneField): The periodic task for health checks.
14221432 health_check_status (bool): The current health check status of the plugin.
14231433 """
1434+
14241435 objects = PythonConfigQuerySet .as_manager ()
14251436 soft_time_limit = models .IntegerField (default = 60 , validators = [MinValueValidator (0 )])
14261437 routing_key = models .CharField (max_length = 50 , default = "default" )
0 commit comments