From db14af1a73d316e25782810186ef704610bc525e Mon Sep 17 00:00:00 2001 From: miteruzo Date: Wed, 16 Oct 2024 22:17:35 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=82=E3=82=8D=E3=82=82=E3=82=8D=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- my_eloquent.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/my_eloquent.py b/my_eloquent.py index 8acc40b..a21efa8 100644 --- a/my_eloquent.py +++ b/my_eloquent.py @@ -18,13 +18,3 @@ class Model (eloquent.Model): self.id = row.id self._Model__exists = True # pylint: disable = protected-access self.save () - - @classmethod - def with_ ( - cls, - *relations: str, - ) -> eloquent.QueryBuilder: - q = cls.query () - for relation in relations: - q = q._load_relation (relation) - return q