<reponame>mcenirm/geoevents<filename>geoevents/core/management/commands/r3dumpdata.py
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)

from django.core.management.base import BaseCommand, CommandError
from django.core.management import call_command

class Command(BaseCommand):
    #args = ''
    help = 'Runs a standard dumpdata process'

    def handle(self, *args, **options):
        models_to_exclude = ['auth.permission', 'contenttypes']

        options['exclude'] = [] if not options.get('exclude') else options.get('exclude')
        map(options['exclude'].append, models_to_exclude)
        options['natural']= True
        options['indent']= options.get('indent') or 4

        call_command('dumpdata',*args, **options)
        self.stdout.write('Successfully dumped the data.\n')

# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)

from django.core.management.base import BaseCommand, CommandError
from django.core.management import call_command

class Command(BaseCommand):
    #args = ''
    help = 'Runs a standard dumpdata process'

    def handle(self, *args, **options):
        models_to_exclude = ['auth.permission', 'contenttypes']

        options['exclude'] = [] if not options.get('exclude') else options.get('exclude')
        map(options['exclude'].append, models_to_exclude)
        options['natural']= True
        options['indent']= options.get('indent') or 4

        call_command('dumpdata',*args, **options)
        self.stdout.write('Successfully dumped the data.\n')
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) #args = ''