apps.py 576 B

12345678910111213141516171819202122232425
  1. from django.apps import AppConfig
  2. class ModelDefaultPKConfig(AppConfig):
  3. name = 'model_options'
  4. class ModelPKConfig(AppConfig):
  5. name = 'model_options'
  6. default_auto_field = 'django.db.models.SmallAutoField'
  7. class ModelPKNonAutoConfig(AppConfig):
  8. name = 'model_options'
  9. default_auto_field = 'django.db.models.TextField'
  10. class ModelPKNoneConfig(AppConfig):
  11. name = 'model_options'
  12. default_auto_field = None
  13. class ModelPKNonexistentConfig(AppConfig):
  14. name = 'model_options'
  15. default_auto_field = 'django.db.models.NonexistentAutoField'