pricing: fix dataclass use with List & py37 (#65370)
This commit is contained in:
parent
3db7658f6e
commit
53b4072ab9
|
@ -17,6 +17,7 @@
|
|||
import copy
|
||||
import dataclasses
|
||||
import decimal
|
||||
from typing import List
|
||||
|
||||
from django.contrib.postgres.fields import JSONField
|
||||
from django.db import models
|
||||
|
@ -316,13 +317,13 @@ class PricingMatrixCell:
|
|||
@dataclasses.dataclass
|
||||
class PricingMatrixRow:
|
||||
criteria: Criteria
|
||||
cells: list[PricingMatrixCell]
|
||||
cells: List[PricingMatrixCell]
|
||||
|
||||
|
||||
@dataclasses.dataclass
|
||||
class PricingMatrix:
|
||||
criteria: Criteria
|
||||
rows: list[PricingMatrixRow]
|
||||
rows: List[PricingMatrixRow]
|
||||
|
||||
|
||||
class AgendaPricing(models.Model):
|
||||
|
|
Loading…
Reference in New Issue