root: simplify task signal imports (#8454)
* *: deduplicate boilerplate for importing related models Signed-off-by: Jens Langhammer <jens@goauthentik.io> * also auto-import .checks Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix error during prometheus metrics from #8435 Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -10,7 +10,3 @@ class AuthentikSourceLDAPConfig(ManagedAppConfig):
 | 
			
		||||
    label = "authentik_sources_ldap"
 | 
			
		||||
    verbose_name = "authentik Sources.LDAP"
 | 
			
		||||
    default = True
 | 
			
		||||
 | 
			
		||||
    def reconcile_global_load_sources_ldap_signals(self):
 | 
			
		||||
        """Load sources.ldap signals"""
 | 
			
		||||
        self.import_module("authentik.sources.ldap.signals")
 | 
			
		||||
 | 
			
		||||
@ -11,7 +11,3 @@ class AuthentikSourceSAMLConfig(ManagedAppConfig):
 | 
			
		||||
    verbose_name = "authentik Sources.SAML"
 | 
			
		||||
    mountpoint = "source/saml/"
 | 
			
		||||
    default = True
 | 
			
		||||
 | 
			
		||||
    def reconcile_global_load_sources_saml_signals(self):
 | 
			
		||||
        """Load sources.saml signals"""
 | 
			
		||||
        self.import_module("authentik.sources.saml.signals")
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user