#29039: Disabling migrations doesn't work with --keepdb
-------------------------------------+-------------------------------------
     Reporter:  Vackar Afzal         |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Testing framework    |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:  database, tests,     |             Triage Stage:  Accepted
  migrations                         |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sergey Yurchenko):

 I have the same problems with creation of test db.
 For tests I don`t use migrations but models directly like in older
 versions of Django without migrations.
 Tests with migrations run is CI to check that migrations are correct so
 nobody cares about time.

 {{{
 class DisableMigrations(object):
     def __contains__(self, item):
         return True

     def __getitem__(self, item):
         return None

 }}}

 in your settings.py

 {{{
     MIGRATION_MODULES = DisableMigrations()
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29039#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.45147a42e051f57ea22f380da1b7ea27%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to