PamGram/core/basemodel.py