Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Use latest DDF with setting no need for our custom version
Browse files Browse the repository at this point in the history
Recent versions of django-dynamic-fixture support wildcards
in the `DDF_IGNORE_FIELDS` setting which makes it easy to
specify that all fields ending with `_ptr` – as used by
django-polymorphic – should be ignored when populating
field data.
  • Loading branch information
jmurty committed May 19, 2017
1 parent dcad6d0 commit 92513f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions icekit_events/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

DDF_FILL_NULLABLE_FIELDS = False
DDF_IGNORE_FIELDS = ['*_ptr'] # Ignore django-polymorphic pointer fields
FLUENT_PAGES_TEMPLATE_DIR = os.path.join(BASE_DIR, '..', 'templates')

TEMPLATES = [
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@
'fluentevent': ['django-fluent-contents'],
'postgres': ['psycopg2'],
'test': [
'coverage', 'django-nose', 'nose-progressive', 'django-webtest', 'WebTest',
# TODO Specific version of django-dynamic-fixture is necessary to avoid
# AttributeError: can't set attribute` failures on polymorphic models.
# See https://github.com/paulocheque/django-dynamic-fixture/pull/59
'django-dynamic-fixture==1.9.0+0.caeb3427399edd3b0d589516993c7da55e0de560.ixc',
'coverage',
'django-dynamic-fixture',
'django-nose',
'django-webtest',
'nose-progressive',
'WebTest',
]
},
setup_requires=['setuptools_scm'],
Expand Down

0 comments on commit 92513f4

Please sign in to comment.