Skip to content
Permalink
Browse files

Fix test on min2 project (Since Django 1.7+ no longer considers empty…

… fixtures as an error we avoid Lino's trick).

#38
  • Loading branch information...
khchine5
khchine5 committed Nov 8, 2015
1 parent a0e361b commit 029dbfe4560c3f336276232ed8afdbf4eca3ea35
Showing with 6 additions and 2 deletions.
  1. +6 −2 lino/utils/dpy.py
@@ -17,7 +17,7 @@
import os
import imp
from decimal import Decimal

from lino import AFTER17

from django.conf import settings
from django.db import models
@@ -649,7 +649,11 @@ def deserialize_module(self, module, **options):
empty_fixture = False
yield o

if empty_fixture:
# Since Django 1.7 no longer considers empty fixtures as an
# error, we don't need to use our trick of yielding the
# SiteConfig instance. That trick sometimes could cause side
# effects.
if empty_fixture and not AFTER17:
if SUPPORT_EMPTY_FIXTURES:
# avoid Django interpreting empty fixtures as an error
yield DummyDeserializedObject()

0 comments on commit 029dbfe

Please sign in to comment.
You can’t perform that action at this time.