Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-13 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  coldmind
 Type:  Bug  |   Status:  closed
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"136edac8974ff0b570ce0a3e66e7aadf542225f0"]:
 {{{
 #!CommitTicketReference repository=""
 revision="136edac8974ff0b570ce0a3e66e7aadf542225f0"
 [1.8.x] Fixed #24320 - Used field.value_to_string() in serialization of
 foreign key.

 This fixes serialization of a ForeignKey to a UUIDField as the
 test indicates.

 Backport of 5c995dcfc251b55284e1ef16545acd2acad6be04 from master
 }}}

--
Ticket URL: 
Django 
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/068.f8599c347a79d22cd309f110e0165f12%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-13 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  coldmind
 Type:  Bug  |   Status:  closed
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"5c995dcfc251b55284e1ef16545acd2acad6be04"]:
 {{{
 #!CommitTicketReference repository=""
 revision="5c995dcfc251b55284e1ef16545acd2acad6be04"
 Fixed #24320 - Used field.value_to_string() in serialization of foreign
 key.

 This fixes serialization of a ForeignKey to a UUIDField as the
 test indicates.
 }}}

--
Ticket URL: 
Django 
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/068.f98ad2eaeff09ea7bed9de571f55aa2f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-13 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  coldmind
 Type:  Bug  |   Status:  assigned
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by coldmind):

 Opened new PR to master:
 https://github.com/django/django/pull/4125

--
Ticket URL: 
Django 
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/068.128c4f28f77fad8aa9ec4a05ead5b3d6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-13 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  coldmind
 Type:  Bug  |   Status:  assigned
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by timgraham):

 There are at least two open tickets related to this that may be duplicates
 or warrant concurrent investigation: #9422 and #17587. By the way, it's
 easier if you open your PR against master and let the committer backport
 from there.

--
Ticket URL: 
Django 
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/068.e5f216f920fe821a5e4373fb512ac779%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-13 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  coldmind
 Type:  Bug  |   Status:  assigned
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by coldmind):

 * cc: me@… (added)
 * has_patch:  0 => 1


Comment:

 https://github.com/django/django/pull/4123

--
Ticket URL: 
Django 
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/068.e1281b9cc3ce8149112f82f8ea993ac6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-13 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  coldmind
 Type:  Bug  |   Status:  assigned
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by coldmind):

 * status:  new => assigned
 * owner:  nobody => coldmind


Comment:

 I will try to fix this

--
Ticket URL: 
Django 
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/068.ac99d5e0b2edb36fe245e374306e5d26%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-12 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by timgraham):

 Thanks. Problem seems to be having a FK to an object with a UUID pk.
 Attaching a failing test for Django's test suite.

--
Ticket URL: 
Django 
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/068.44963dc99ef7131426000cb3ce118388%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-12 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by jamesbeith):

 * status:  closed => new
 * resolution:  needsinfo =>


Comment:

 I have created an example project which reproduces the issue.

--
Ticket URL: 
Django 
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/068.d2d5890e2271744f11c3cb330adfb8f8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-12 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:  needsinfo
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Please reopen with more details if this is still an issue.

--
Ticket URL: 
Django 
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/068.590c0e809ec1504baf5d1a046a76e859%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-12 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"8d1816db87e9e700d9bd5336ac25686fdf30c789"]:
 {{{
 #!CommitTicketReference repository=""
 revision="8d1816db87e9e700d9bd5336ac25686fdf30c789"
 [1.8.x] Added a test for UUIDField serialization; refs #24320.

 Backport of d7509c52466aeffb13ccd8a86475e74fdb0e6292 from master
 }}}

--
Ticket URL: 
Django 
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/068.b09d470861facb6865b1b7cf531da486%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-12 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"d7509c52466aeffb13ccd8a86475e74fdb0e6292"]:
 {{{
 #!CommitTicketReference repository=""
 revision="d7509c52466aeffb13ccd8a86475e74fdb0e6292"
 Added a test for UUIDField serialization; refs #24320.
 }}}

--
Ticket URL: 
Django 
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/068.fa1486eeb83cac69ed55521601edc34c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-11 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by timgraham):

 I created a custom user with UUID pk:
 {{{
 import uuid

 from django.contrib.auth.models import AbstractUser
 from django.db import models


 class UUIDUser(AbstractUser):
 id = models.UUIDField(primary_key=True, default=uuid.uuid4)
 }}}
 And then tried:
 {{{
 python manage.py dumpdata uuiduser.UUIDUser
 [{"fields": {"username": "tim", "first_name": "", "last_name": "",
 "is_active": true,
 "is_superuser": true, "is_staff": true, "last_login":
 "2015-02-11T19:01:02.747Z",
 "groups": [], "user_permissions": [], "password": "...", "email":
 "a...@g.com",
 "date_joined": "2015-02-11T18:55:33.572Z"}, "model": "uuiduser.uuiduser",
 "pk": "dd100fcd-a894-4435-ad30-bdcd4671ac44"}]
 }}}
 Tested on SQLite and PostgreSQL. Could you provide more details? I'm also
 attached a test for Django's test suite that I tried writing to reproduce
 the issue.

--
Ticket URL: 
Django 
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/068.7495b7f7fb2db29e70f47de27914c544%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format

2015-02-11 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
-+-
 Reporter:  jamesbeith   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  Core |  Version:  1.8alpha1
  (Serialization)|
 Severity:  Release blocker  |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by claudep):

 * component:  Utilities => Core (Serialization)
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted


--
Ticket URL: 
Django 
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/068.1f83ad85d2b4e3bea81e0d70db3a6313%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #24320: Unable to serialize UUIDField when running dumpdata with JSON format (was: Unable to serialize UUID field when running dumpdata with JSON format)

2015-02-11 Thread Django
#24320: Unable to serialize UUIDField when running dumpdata with JSON format
+--
 Reporter:  jamesbeith  |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Utilities   |  Version:  1.8alpha1
 Severity:  Normal  |   Resolution:
 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 jamesbeith):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0


Old description:

> A model with a UUID as its primary key. Running `dumpdata` management
> command with JSON output format (the default option) resulted in the
> following error
>
> {{{
> CommandError: Unable to serialize database: UUID('435697b4-954a-4b9a-
> a83a-2b53016b0d43') is not JSON serializable
> }}}
>
> However running again with `--format=xml` did not result in an error and
> `dumpdata` was successful.

New description:

 A model using a UUIDField as its primary key. Running `dumpdata`
 management command with JSON output format (the default option) resulted
 in the following error

 {{{
 CommandError: Unable to serialize database: UUID('435697b4-954a-4b9a-a83a-
 2b53016b0d43') is not JSON serializable
 }}}

 However running again with `--format=xml` did not result in an error and
 `dumpdata` was successful.

--

--
Ticket URL: 
Django 
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/068.759c56529705e780b0d098119d62ca6b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.