Monday, August 30, 2010

Re: Is there a way to dumpdata truncate to last n lines?

Hi Steven,

You can use the django-test-utils app, more specifically it's
"makefixture" command, then you can just dump a single model instance
if you want. Or a subset of model instances.
You can see it here:
http://github.com/ericholscher/django-test-utils/blob/master/test_utils/management/commands/makefixture.py

Cheers,

Botond

On Aug 30, 5:47 pm, rh0dium <steven.kl...@gmail.com> wrote:
> Hi Folks,
>
> Is there anyway to dump the last 'n' lines of the db.  I like to build
> test fixtures but with 3M lines it's a bit much...
>
> Thanks
>
> ---
>
> Steven M. Klass
>
> ☎ 1 (480) 225-1112
> ✉ skl...@pointcircle.com

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment