Skip to content

Commit

Permalink
Revert "adding dataclass to record model (#33)" (#42)
Browse files Browse the repository at this point in the history
Record class was broken after this commit. See #37
This reverts commit c0afb20.
  • Loading branch information
abyesilyurt authored May 31, 2023
1 parent 99aefa0 commit d153a41
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pocketbase/models/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

from pocketbase.models.utils.base_model import BaseModel
from pocketbase.utils import camel_to_snake
from dataclasses import dataclass, field

@dataclass

class Record(BaseModel):
collection_id: str
collection_name: str = ""
expand: dict = field(default_factory=dict)
collection_name: str
expand: dict

def load(self, data: dict) -> None:
super().load(data)
Expand Down

0 comments on commit d153a41

Please sign in to comment.