Thanks for all the advice! I think django could probably do with a
little tool like this when dumping or importing data.

Is the boolean field the only odd one out? or is there any thing else
that needs chanaging? Date fields? datetime?

Thanks again!

On May 20, 12:54 pm, George Vilches <[EMAIL PROTECTED]> wrote:
> Hanne Moa wrote:
> > I have a filter that makes django's json-dumps more human-readable, by
> > adding a newline after every occurence of "}},". Running such a filter
> > first would make for short and snappy lines for the rewriting filter:
>
> > python manage.py dumpdata | prettifyjson | fixbooleans > postgres_safe.json
>
> You could also prettify the JSON by just using:
>
> python manage.py dumpdata --indent=4
>
> gav
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to