Fixed staticmethod decorator in models.py