mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
10 lines
277 B
Python
10 lines
277 B
Python
from felicity.libs.sqlalchemy_mptt import BaseNestedSets
|
|
|
|
|
|
class BaseMPTT(BaseNestedSets):
|
|
abstract = True
|
|
|
|
@classmethod
|
|
def get_pk_name(cls):
|
|
"""override get_pk_name to use uid instead of id"""
|
|
return getattr(cls, "sqlalchemy_mptt_pk_name", "uid")
|