From ba02aec9aee9aa62c485673c4a44055c71d06d08 Mon Sep 17 00:00:00 2001 From: David Schoonover Date: Wed, 6 Jun 2012 05:47:55 -0700 Subject: [PATCH] Strip out id from DataSet JSON before saving. --- lib/data/dataset-model.co | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/data/dataset-model.co b/lib/data/dataset-model.co index b96480b..e24a6aa 100644 --- a/lib/data/dataset-model.co +++ b/lib/data/dataset-model.co @@ -100,6 +100,12 @@ DataSet = exports.DataSet = BaseModel.extend do # {{{ DataSet.__super__.set.call this, values, opts + toJSON: -> + json = DataSet.__super__.toJSON ... + delete json.id + json + + /* * * * TimeSeriesData interface * * * {{{ */ /** -- 1.7.0.4