Skip to content

Commit

Permalink
Remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tan-z-tan committed Aug 21, 2023
1 parent 9064518 commit d905bda
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyfireconsole/models/pyfire_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import inflection
from google.api_core.datetime_helpers import DatetimeWithNanoseconds
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict

from pyfireconsole.queries.get_query import DocNotFoundException
from pyfireconsole.queries.order_query import OrderCondition, OrderDirection
Expand Down Expand Up @@ -186,8 +186,7 @@ def get(self, model_class: Type[ModelType]) -> 'PyfireDoc':


class PyfireDoc(BaseModel):
class Config:
arbitrary_types_allowed = True
model_config = ConfigDict(arbitrary_types_allowed=True)

id: Optional[str] = None # Firestore document id
_parent: Optional[PyfireCollection] = None # when a model is a subcollection, this is the parent model
Expand Down

0 comments on commit d905bda

Please sign in to comment.