Commit 26f98199 authored by Jean-samuel TETTEKPOE's avatar Jean-samuel TETTEKPOE
Browse files

Remove unused imports

parent ffe53034
from mock import Mock, patch
from mock import patch
from rest_framework.test import APITestCase
from bars_core.models.user import User
......
from datetime import date, timedelta
from mock import Mock
from django.db import models
from django.db.models import Count, F, Sum, Prefetch, fields
from rest_framework import viewsets, serializers, decorators
from django.db.models import Count, F, Sum
from rest_framework import viewsets, serializers
from rest_framework.response import Response
from rest_framework.decorators import action
......
from django.db import models
from django.db.models import fields
from bars_django.utils import (
VirtualField,
permission_logic,
......
......@@ -3,7 +3,6 @@
import random
import string
from django.db import models
from django.db.models import Prefetch
from django.core.mail import send_mail
from django.contrib.auth.models import (
BaseUserManager,
......@@ -19,7 +18,6 @@ from rest_framework.views import APIView
from permission.logics import OneselfPermissionLogic
from bars_django.utils import VirtualField, permission_logic
from bars_core.perms import RootBarRolePermissionLogic
from bars_core.models.loginattempt import LoginAttempt
class UserManager(BaseUserManager):
......
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.admin.helpers import ActionForm
from django.contrib.auth.models import Group
from django import forms
from bars_items.models.buyitem import BuyItem, BuyItemPrice
from bars_items.models.itemdetails import ItemDetails
......
from django.http import Http404
from django.db import models
from django.db.models import Prefetch, fields
from rest_framework import viewsets, serializers, permissions
from django.db.models import Prefetch
from rest_framework import viewsets, serializers
from rest_framework.response import Response
from rest_framework.serializers import ValidationError
from rest_framework.fields import CreateOnlyDefault
from bars_django.utils import VirtualField, permission_logic, CurrentBarDefault
from bars_core.perms import (
......
from django.http import Http404
from django.db import models
from django.db.models import Sum, F, Prefetch, Value as V, fields
from django.db.models import Sum, F, Prefetch, Value as V
from rest_framework import viewsets, serializers
from bars_django.utils import VirtualField, permission_logic
from rest_framework.response import Response
......
from django.http import Http404, HttpResponseBadRequest
from django.db import models
from django.db.models import Sum, F, Prefetch, fields
from django.db.models import Sum, F, Prefetch
import datetime
from django.utils.timezone import utc
from rest_framework import viewsets, serializers, exceptions
......
......@@ -82,12 +82,10 @@ def _get_interval_sql(date_field, interval, engine):
# Inspired from https://github.com/kmike/django-qsstats-magic
from datetime import datetime
from django.db.models import Count, Sum, F
from django.db.models import Count, Sum
from django.core.exceptions import ValidationError
from bars_transactions.models import Transaction
from bars_core.models.bar import Bar
from bars_core.models.account import Account
from bars_items.models.sellitem import SellItem
def validate_date(d):
......
# encoding: utf8
from django.core.mail import send_mail
from django.db import models
from django.db import models, transaction
from bars_django.utils import VirtualField, permission_logic
from bars_core.perms import BarRolePermissionLogic
from bars_core.models.bar import Bar
from bars_core.models.user import User
from bars_core.models.user import User, get_default_user
from bars_items.models.stockitem import StockItem
from bars_core.models.account import Account
from bars_transactions.perms import TransactionAuthorPermissionLogic
......
......@@ -2,7 +2,6 @@
import math
from django.core.mail import send_mail
from django.db.models import fields
from django.utils import timezone
from django.http import Http404
......
......@@ -2,8 +2,7 @@ from django.db.models import Prefetch
from bars_core.models.bar import Bar
from bars_items.models.stockitem import StockItem
from bars_items.models.itemdetails import ItemDetails
from bars_items.models.buyitem import BuyItem, BuyItemPrice
from bars_items.models.buyitem import BuyItemPrice
def run():
......
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