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

custom model field validators need serialization ability #460

Closed
bengolder opened this issue Feb 24, 2017 · 0 comments
Closed

custom model field validators need serialization ability #460

bengolder opened this issue Feb 24, 2017 · 0 comments
Labels

Comments

@bengolder
Copy link
Contributor

bengolder commented Feb 24, 2017

I tried to make new migrations for the application transfer, and ran into an error related to the TemplateFieldValidator

  File "/Users/bengolder/projects/intake/lib/python3.5/site-packages/django/db/migrations/serializer.py", line 388, in serializer_factory
    "topics/migrations/#migration-serializing" % (value, get_docs_version())
ValueError: Cannot serialize: <intake.validators.TemplateFieldValidator object at 0x105745cc0>
There are some values Django cannot serialize into migration files.
For more, see https://docs.djangoproject.com/en/1.10/topics/migrations/#migration-serializing

I found a related issue: https://code.djangoproject.com/ticket/21275
And this commit shows some examples of designating validators as serializable:
loic/django@92e9e0c

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants