Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
awieckowski committed May 7, 2024
1 parent 37ece5a commit 21c4657
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ralph/lib/custom_fields/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from functools import reduce
from typing import Any

from dataclasses import dataclass
from django.contrib.contenttypes.fields import (
create_generic_related_manager,
GenericRelation
Expand Down Expand Up @@ -149,10 +148,10 @@ def values_list(self, *fields):
)


@dataclass
class RelModel:
model: Any # noqa
field: CustomFieldsWithInheritanceRelation # noqa
def __init__(self, model: Any, field: CustomFieldsWithInheritanceRelation):
self.model = model
self.field = field


class ReverseGenericRelatedObjectsWithInheritanceDescriptor:
Expand Down

0 comments on commit 21c4657

Please sign in to comment.