Skip to content

Commit

Permalink
Correct config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklinke committed Dec 21, 2024
1 parent 4c1b20b commit aeeb3ef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,15 @@ Django Tenant Options allows you to customize the base classes used for models,
Configure base classes globally in your Django settings:

```python
import auto_prefetch

DJANGO_TENANT_OPTIONS = {
# Base class settings
"MODEL_CLASS": "auto_prefetch.Model", # Default: django.db.models.Model
"MANAGER_CLASS": "auto_prefetch.Manager", # Default: django.db.models.Manager
"QUERYSET_CLASS": "auto_prefetch.QuerySet", # Default: django.db.models.QuerySet
"FOREIGNKEY_CLASS": "auto_prefetch.ForeignKey", # Default: django.db.models.ForeignKey
"ONETOONEFIELD_CLASS": "auto_prefetch.OneToOneField", # Default: django.db.models.OneToOneField
"MODEL_CLASS": auto_prefetch.Model, # Default: django.db.models.Model
"MANAGER_CLASS": auto_prefetch.Manager, # Default: django.db.models.Manager
"QUERYSET_CLASS": auto_prefetch.QuerySet, # Default: django.db.models.QuerySet
"FOREIGNKEY_CLASS": auto_prefetch.ForeignKey, # Default: django.db.models.ForeignKey
"ONETOONEFIELD_CLASS": auto_prefetch.OneToOneField, # Default: django.db.models.OneToOneField
}
```

Expand Down

0 comments on commit aeeb3ef

Please sign in to comment.