base.py 304 B

12345678910111213
  1. from django.db import models
  2. from psqlextra.manager import PostgresManager
  3. class PostgresModel(models.Model):
  4. """Base class for for taking advantage of PostgreSQL specific features."""
  5. class Meta:
  6. abstract = True
  7. base_manager_name = "objects"
  8. objects = PostgresManager()