diff --git a/core/models/cvs.py b/core/models/cvs.py index aa864bde..a2ced0bf 100644 --- a/core/models/cvs.py +++ b/core/models/cvs.py @@ -102,7 +102,7 @@ def crete_cvs_from_profile_templates(cls): cls.objects.filter(profile__auto_created=True).delete() from .tex import Tex - for tex in Tex.objects.all(): + for tex in Tex.objects.filter(active=True): for profile in Profile.objects.filter(category="template"): obj = cls.objects.create(profile=profile, tex=tex, auto_created=True) obj.render_files()