From 7be1d76f62abb96a147db7835e8b900203cbe0f4 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 25 May 2016 02:44:05 -0400 Subject: [PATCH] Move import. Improve comment. --- mayan/apps/organizations/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/organizations/models.py b/mayan/apps/organizations/models.py index 932de76f8e..fabf7f8b89 100644 --- a/mayan/apps/organizations/models.py +++ b/mayan/apps/organizations/models.py @@ -5,6 +5,7 @@ import string import warnings from django.apps import apps +from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ImproperlyConfigured, ValidationError from django.db import models @@ -32,12 +33,11 @@ class OrganizationManager(models.Manager): the project's settings. The ``Organization`` object is cached the first time it's retrieved from the database. """ - from django.conf import settings try: oid = settings.ORGANIZATION_ID except AttributeError: raise ImproperlyConfigured( - "You're using the Django \"organizations framework\" without " + "You're using the \"organizations framework\" without " "having set the ORGANIZATION_ID setting. Create an " "organization in your database and set the ORGANIZATION_ID " "setting to fix this error."