# -*- coding: utf-8 -*-
from openprocurement.auctions.core.adapters import AuctionConfigurator
from openprocurement.auctions.flash.models import Auction
from openprocurement.auctions.core.plugins.awarding.v1.utils import add_next_award
from openprocurement.auctions.core.plugins.awarding.v1.models import Award


class AuctionFlashConfigurator(AuctionConfigurator):
    name = 'Auction Flash Configurator'
    model = Auction
    award_model = Award

    def add_award(self):
        return add_next_award(self.request)

@@ -92,66 +92,8 @@
 tor%0A
-from openprocurement.auctions.flash.models import Auction%0A
 from
@@ -147,12 +147,15 @@
 .v1.
-util
+adapter
 s im
@@ -159,30 +159,43 @@
  import 
-add_next_award
+AwardingV1ConfiguratorMixin
 %0Afrom op
@@ -221,32 +221,13 @@
 ons.
-core.plugins.awarding.v1
+flash
 .mod
@@ -238,20 +238,22 @@
 import A
-ward
+uction
 %0A%0A%0Aclass
@@ -297,16 +297,45 @@
 igurator
+, AwardingV1ConfiguratorMixin
 ):%0A    n
@@ -393,98 +393,4 @@
 ion%0A
-    award_model = Award%0A%0A    def add_award(self):%0A        return add_next_award(self.request)%0A

use awarding mixin for configurator