Hi Michael.
It should 'just work' in the admin: I'm using it fairly extensively, and
most of our access is through the admin (or a JSON api).
If we can get a minimal failing test, then I'll make sure it gets fixed.
(And thanks, Reinout, for the referral/comment)
Matt.
On Wednesday, July 11, 2012 7:21:45 AM UTC+9:30, Michael Palumbo wrote:
>
> Can you get it work in the admin ?
> I don't understand why I get a ValidationError "[u"'' is not a valid JSON
> string."] as soon as I try to reach the Add admin page of my Model...
>
> import jsonfield
> class Mapping(models.Model):
> data_map4 = jsonfield.JSONField()
> -----
> class MappingAdmin(admin.ModelAdmin):
> fields = ['data_map4']
> list_display = ('data_map4',)
>
> Thanks.
>
> Le mardi 10 juillet 2012 22:08:50 UTC+2, Reinout van Rees a écrit :
>>
>> On 09-07-12 20:52, Michael Palumbo wrote:
>> > Hi,
>> >
>> > I have found several implementations of a Django JSON Field.
>> > Have you ever tried one ? Which one do you recommend ?
>>
>> I'm using the 'django-jsonfield' on pypi:
>> http://pypi.python.org/pypi/django-jsonfield/
>>
>> It is https://bitbucket.org/schinckel/django-jsonfield/ on bitbucket.
>> I looked at it with a colleague and it seemed to have a bit more
>> validation than some others. Little things.
>>
>>
>> Reinout
>>
>> --
>> Reinout van Rees http://reinout.vanrees.org/
>> [email protected] http://www.nelen-schuurmans.nl/
>> "If you're not sure what to do, make something. -- Paul Graham"
>>
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/4PanQBEU2swJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.