[Django] #22892: ValueError: Cannot serialize function: lambda

131 views
Skip to first unread message

Django

unread,
Jun 23, 2014, 7:55:12 PM6/23/14
to django-...@googlegroups.com
#22892: ValueError: Cannot serialize function: lambda
---------------------------------+--------------------------
Reporter: lorddaedra | Owner: andrewgodwin
Type: Bug | Status: new
Component: Migrations | Version: 1.7-beta-2
Severity: Release blocker | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------
I can't make migrations. More info here: https://dpaste.de/J476 I think
it's release blocker because of I can't use
https://docs.djangoproject.com/en/dev/ref/models/fields/#default with
lambda

May be you can reproduce this bug on more simple case (without custom
field )...

I installed django yesterday with command
pip install git+https://github.com/django/django@stable/1.7.x
so it's latest Django 1.7.dev...

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

Django

unread,
Jun 23, 2014, 8:10:36 PM6/23/14
to django-...@googlegroups.com
#22892: ValueError: Cannot serialize function: lambda
---------------------------------+----------------------------------------
Reporter: lorddaedra | Owner: andrewgodwin
Type: Bug | Status: closed
Component: Migrations | Version: 1.7-beta-2
Severity: Release blocker | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+----------------------------------------
Changes (by timo):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

This is by design. There is
[https://docs.djangoproject.com/en/dev/topics/migrations/#serializing-
values some documentation] about it already and #22351 suggests to enhance
it.

--
Ticket URL: <https://code.djangoproject.com/ticket/22892#comment:1>

Reply all
Reply to author
Forward
0 new messages