Ticket #20509: patch.diff

File patch.diff, 771 bytes (added by Weipin Xia, 11 years ago)
  • django/core/management/commands/dumpdata.py

    From 8e310ad54b1bccb5a41e0d5126b3214dca0acbda Mon Sep 17 00:00:00 2001
    From: Weipin Xia <weipin@me.com>
    Date: Mon, 27 May 2013 17:11:52 +0800
    Subject: [PATCH] Fix dumpdata --pks option
    
    ---
     django/core/management/commands/dumpdata.py | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py
    index b1e06e4..e0f6d4f 100644
    a b class Command(BaseCommand):  
    4242        pks = options.get('primary_keys')
    4343
    4444        if pks:
    45             primary_keys = pks.split(',')
     45            primary_keys = pks
    4646        else:
    4747            primary_keys = False
    4848
Back to Top