Commit 1a9396ea authored by chris's avatar chris

fix imports (2/2)

parent 6a82d10d
......@@ -67,9 +67,10 @@ class RepanierSettings(AppConfig):
try:
db_started = connection.cursor() is not None
except:
print("waiting for database connection")
time.sleep(1)
from models import Configuration, LUT_DepartmentForCustomer, Product
from const import DECIMAL_ONE, PERMANENCE_NAME_PERMANENCE, CURRENCY_EUR, ORDER_GROUP, \
from repanier.models import Configuration, LUT_DepartmentForCustomer, Product
from repanier.const import DECIMAL_ONE, PERMANENCE_NAME_PERMANENCE, CURRENCY_EUR, ORDER_GROUP, \
INVOICE_GROUP, CONTRIBUTOR_GROUP, COORDINATION_GROUP, WEBMASTER_GROUP
try:
# Create if needed and load RepanierSettings var when performing config.save()
......
# -*- coding: utf-8
from __future__ import unicode_literals
from const import SIZE_XS, SIZE_S, SIZE_M, SIZE_L
from .const import SIZE_XS, SIZE_S, SIZE_M, SIZE_L
from repanier.tools import sint
try:
......
......@@ -10,7 +10,7 @@ from django.forms import widgets
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from const import SIZE_M
from repanier.picture.const import SIZE_M
from repanier.const import EMPTY_STRING
......
......@@ -33,8 +33,8 @@ from django.utils.text import slugify
from django.utils.translation import ugettext_lazy as _
from six import string_types
import models
from const import *
from repanier import models
from repanier.const import *
from repanier import apps
from repanier.fields.RepanierMoneyField import RepanierMoney
......
......@@ -5,7 +5,7 @@ from django.contrib.auth.decorators import login_required
from django.views.decorators.cache import never_cache
# from django.views.i18n import JavaScriptCatalog
from picture.views import ajax_picture
from repanier.picture.views import ajax_picture
from repanier.rest.lut import departments_for_customers_rest, department_for_customer_rest
from repanier.rest.permanence import permanences_rest, permanence_producer_product_rest, \
permanence_producer_rest
......
......@@ -13,7 +13,7 @@ from django.views.decorators.cache import never_cache
from django.views.decorators.csrf import csrf_protect
from django.views.decorators.debug import sensitive_post_parameters
from forms import AuthRepanierLoginForm
from repanier.views.forms import AuthRepanierLoginForm
from repanier.models import Staff
from repanier.const import EMPTY_STRING, ORDER_GROUP, INVOICE_GROUP, WEBMASTER_GROUP, CONTRIBUTOR_GROUP, \
COORDINATION_GROUP
......
......@@ -8,7 +8,7 @@ from django.shortcuts import get_object_or_404, render
from django.utils.translation import ugettext_lazy as _
from django.views.decorators.cache import never_cache
from forms import ProducerProductForm
from repanier.views.forms import ProducerProductForm
from repanier.const import DECIMAL_ZERO, DECIMAL_ONE, PRODUCT_ORDER_UNIT_PC_PRICE_KG, TWO_DECIMALS, ONE_DECIMAL, \
PRODUCT_ORDER_UNIT_PC_KG, PERMANENCE_PRE_OPEN, EMPTY_STRING, VAT_400
from repanier.models import Producer, Permanence, Product, OfferItem
......
......@@ -7,7 +7,7 @@ from django.http import Http404
from django.shortcuts import get_object_or_404, render
from django.views.decorators.cache import never_cache
from forms import ProducerProductForm
from repanier.views.forms import ProducerProductForm
from repanier.const import ONE_DECIMAL, TWO_DECIMALS, DECIMAL_ZERO, PRODUCT_ORDER_UNIT_PC_KG, DECIMAL_ONE, \
PERMANENCE_PRE_OPEN
from repanier.models import Producer, OfferItem
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment