mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-24 20:23:45 +00:00
chore: Fix fields type
This commit is contained in:
parent
af48655eb0
commit
118d13da6f
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ class FieldsAggregationMetaClass(type):
|
|||
Metaclass to handle custom inheritance of fields between classes.
|
||||
"""
|
||||
|
||||
fields: Iterable[str]
|
||||
|
||||
def __new__(cls, name: str, bases: tuple[type, ...], attrs: dict[str, Any]) -> type:
|
||||
attrs["fields"] = set(attrs.get("fields", ()))
|
||||
for base in bases:
|
||||
|
|
|
|||
Loading…
Reference in a new issue