diff --git a/bitbake/lib/toaster/contrib/django-aggregate-if-master/aggregate_if.py b/bitbake/lib/toaster/contrib/django-aggregate-if-master/aggregate_if.py index 4ea9e8c06e..d5f3427170 100644 --- a/bitbake/lib/toaster/contrib/django-aggregate-if-master/aggregate_if.py +++ b/bitbake/lib/toaster/contrib/django-aggregate-if-master/aggregate_if.py @@ -10,7 +10,7 @@ This code was based on the work of others found on the internet: 4. https://groups.google.com/forum/?fromgroups=#!topic/django-users/vVprMpsAnPo ''' from __future__ import unicode_literals -import six +from django.utils import six import django from django.db.models.aggregates import Aggregate as DjangoAggregate from django.db.models.sql.aggregates import Aggregate as DjangoSqlAggregate diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index 141ad08877..60e80de2f6 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py @@ -393,3 +393,12 @@ class InvalidString(str): "Undefined variable or unknown value for: \"%s\"" % other) TEMPLATE_STRING_IF_INVALID = InvalidString("%s") + +import sys +sys.path.append( + os.path.join( + os.path.join( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))), + "contrib"), + "django-aggregate-if-master") + )