def handle(self, *args, **options): node_name = options['node_name'] data_type = options['data_type'] data_value = options['data_value'] new_data_point =DataPoint(node_name=node_name,data_type=data_type,data_value=data_value) new_data_point.save() print('All points') print(DataPoint.objects.all())
def handle(self, *args, **options): node_name = options['node_name'] data_type = options['data_type'] data_value = options['data_value'] new_data_point = DataPoint(node_name=node_name, data_type=data_type, data_value=data_value) new_data_point.save() print('All data points:') print(DataPoint.objects.all())