From 239b1e87b90544fc3ebec97e7497405f322aea92 Mon Sep 17 00:00:00 2001 From: Pramod Gupta Date: Fri, 26 Jul 2024 14:02:54 -0600 Subject: [PATCH] base.py: comments for get_model() --- python/target_selection/cartons/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/target_selection/cartons/base.py b/python/target_selection/cartons/base.py index a050831e..2ce0bf53 100644 --- a/python/target_selection/cartons/base.py +++ b/python/target_selection/cartons/base.py @@ -186,6 +186,10 @@ def build_query(self, version_id, query_region=None): def get_model(self): """Returns a Peewee model for the temporary table using reflection.""" + # peewee has a Model class, BaseModel class, and ModelBase class. + # The below Model class is different from peewee Model class + # The below BaseModel class is from sdssdb.peewee. + # It is different from peewee BaseModel class. class Model(BaseModel): catalogid = peewee.BigIntegerField(primary_key=True) selected = peewee.BooleanField()