Skip to content
Snippets Groups Projects
Verified Commit 240db7e2 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix is_untis_primary_source helper method

parent c4220f31
No related branches found
No related tags found
1 merge request!120Resolve "Create match failures as data checks"
Pipeline #53559 failed
......@@ -169,4 +169,6 @@ def move_weekday_to_range(time_periods_ref: dict, weekday: int) -> int:
def is_untis_primary_source(model: Type[Model]) -> bool:
"""Check if Untis is primary source for the model."""
allowed_content_types = get_site_preferences()["untis_mysql__data_types_primary_source"]
return ContentType.objects.get_for_model(model) in allowed_content_types
if allowed_content_types:
return ContentType.objects.get_for_model(model) in allowed_content_types
return False
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment