Not a tuple, it's now a json array. (Still not seeing things accurately...)
-- So I would think it would deserialize with __iter__, but I still get the same deserialization error message.
On Monday, March 24, 2014 8:38:52 AM UTC-5, bobhaugen wrote:
On Monday, March 24, 2014 8:38:52 AM UTC-5, bobhaugen wrote:
Got a clue. I re-read the doc and it says the natural key value must be a tuple. Missed that before.So I changed it like this:def natural_key(self):return (self.name,)In the shell, that properly returns a tuple:(u'Cash Contribution',)But in the dumpdata results, it is not a tuple:{"pk": 22,"model": "valueaccounting.patternfacetvalue", "fields": {"facet_value": 4,"pattern": 9,"event_type": ["Cash Contribution"]}},So I am still missing something.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d01a7a4-dc26-462f-8784-69302c1cce1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment