from openprocurement.tender.core.adapters import TenderConfigurator
from openprocurement.tender.limited.models import (
    ReportingTender, NegotiationTender, NegotiationQuickTender
)


class TenderReportingConfigurator(TenderConfigurator):
    """ Reporting Tender configuration adapter """

    name = "Reporting Tender configurator"
    model = ReportingTender

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationConfigurator(TenderConfigurator):
    """ Negotiation Tender configuration adapter """

    name = "Negotiation Tender configurator"
    model = NegotiationTender

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationQuickConfigurator(TenderNegotiationConfigurator):
    """ Negotiation Quick Tender configuration adapter """

    name = "Negotiation Quick Tender configurator"
    model = NegotiationQuickTender

from openprocurement.tender.core.adapters import TenderConfigurator
from openprocurement.tender.openua.constants import STATUS4ROLE
from openprocurement.tender.limited.models import (
    ReportingTender, NegotiationTender, NegotiationQuickTender
)


class TenderReportingConfigurator(TenderConfigurator):
    """ Reporting Tender configuration adapter """

    name = "Reporting Tender configurator"
    model = ReportingTender

    # Dictionary with allowed complaint statuses for operations for each role
    allowed_statuses_for_complaint_operations_for_roles = STATUS4ROLE

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationConfigurator(TenderConfigurator):
    """ Negotiation Tender configuration adapter """

    name = "Negotiation Tender configurator"
    model = NegotiationTender

    # Dictionary with allowed complaint statuses for operations for each role
    allowed_statuses_for_complaint_operations_for_roles = STATUS4ROLE

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationQuickConfigurator(TenderNegotiationConfigurator):
    """ Negotiation Quick Tender configuration adapter """

    name = "Negotiation Quick Tender configurator"
    model = NegotiationQuickTender

Add import and constant in adapter
Add import and constant in adapter

  from openprocurement.tender.core.adapters import TenderConfigurator
+ from openprocurement.tender.openua.constants import STATUS4ROLE
  from openprocurement.tender.limited.models import (
      ReportingTender, NegotiationTender, NegotiationQuickTender
  )
  
  
  class TenderReportingConfigurator(TenderConfigurator):
      """ Reporting Tender configuration adapter """
  
      name = "Reporting Tender configurator"
      model = ReportingTender
+ 
+     # Dictionary with allowed complaint statuses for operations for each role
+     allowed_statuses_for_complaint_operations_for_roles = STATUS4ROLE
  
      @property
      def edit_accreditation(self):
          raise NotImplemented
  
  
  class TenderNegotiationConfigurator(TenderConfigurator):
      """ Negotiation Tender configuration adapter """
  
      name = "Negotiation Tender configurator"
      model = NegotiationTender
  
+     # Dictionary with allowed complaint statuses for operations for each role
+     allowed_statuses_for_complaint_operations_for_roles = STATUS4ROLE
+ 
      @property
      def edit_accreditation(self):
          raise NotImplemented
  
  
  class TenderNegotiationQuickConfigurator(TenderNegotiationConfigurator):
      """ Negotiation Quick Tender configuration adapter """
  
      name = "Negotiation Quick Tender configurator"
      model = NegotiationQuickTender
  
Add import and constant in adapter
## Code Before:
from openprocurement.tender.core.adapters import TenderConfigurator
from openprocurement.tender.limited.models import (
    ReportingTender, NegotiationTender, NegotiationQuickTender
)


class TenderReportingConfigurator(TenderConfigurator):
    """ Reporting Tender configuration adapter """

    name = "Reporting Tender configurator"
    model = ReportingTender

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationConfigurator(TenderConfigurator):
    """ Negotiation Tender configuration adapter """

    name = "Negotiation Tender configurator"
    model = NegotiationTender

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationQuickConfigurator(TenderNegotiationConfigurator):
    """ Negotiation Quick Tender configuration adapter """

    name = "Negotiation Quick Tender configurator"
    model = NegotiationQuickTender

## Instruction:
Add import and constant in adapter
## Code After:
from openprocurement.tender.core.adapters import TenderConfigurator
from openprocurement.tender.openua.constants import STATUS4ROLE
from openprocurement.tender.limited.models import (
    ReportingTender, NegotiationTender, NegotiationQuickTender
)


class TenderReportingConfigurator(TenderConfigurator):
    """ Reporting Tender configuration adapter """

    name = "Reporting Tender configurator"
    model = ReportingTender

    # Dictionary with allowed complaint statuses for operations for each role
    allowed_statuses_for_complaint_operations_for_roles = STATUS4ROLE

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationConfigurator(TenderConfigurator):
    """ Negotiation Tender configuration adapter """

    name = "Negotiation Tender configurator"
    model = NegotiationTender

    # Dictionary with allowed complaint statuses for operations for each role
    allowed_statuses_for_complaint_operations_for_roles = STATUS4ROLE

    @property
    def edit_accreditation(self):
        raise NotImplemented


class TenderNegotiationQuickConfigurator(TenderNegotiationConfigurator):
    """ Negotiation Quick Tender configuration adapter """

    name = "Negotiation Quick Tender configurator"
    model = NegotiationQuickTender
