def handle(self, *args, **options):
        datapath = options['datapath'][0]

        with open(datapath, 'rU') as csvfile:
            filereader = csv.reader(csvfile, delimiter=',')
            for row in filereader:
                acr_id = row[0]
                name = row[1]
                order = row[2]

                try:
                    acrelation = ACRelation.objects.get(pk=acr_id)
                    if name:
                        acrelation.name_as_entered = name
                    if order:
                        acrelation.data_display_order = order
                    acrelation.save()
                except __HOLE__:
                    print "Could not find object with id " + acr_id
dataset/ETHPy150Open upconsulting/IsisCB/isiscb/isisdata/management/commands/missing_acr_data_cmd.py/Command.handle