How create model only for test.

Hi @marosko89 — Good question.

There’s a (long-standing) open ticket for that as it happens:

https://code.djangoproject.com/ticket/7835

The solution I use is @charettes’ suggestion in comment:46 there. This works well, so :+1:

@adamchainz brought up similar, with reference to documenting the internal @isolate_apps decorator (ticket) (linked example usage)

Either of those should get you going. Would be interested to see what you settle on.

HTH.
Carlton