Skip to content

Commit

Permalink
removed console log
Browse files Browse the repository at this point in the history
  • Loading branch information
maccesch committed Jul 14, 2011
1 parent c1c44ef commit 67b9b29
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions djstorm.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,6 @@ RelatedManager.prototype.set = function(instances, doneCallback) {
throw "Method set() cannot be called on a RelatedManager instance that doesn't represent a ManyToManyField";
}

console.log('joinModelDef: ' + this._joinModelDef.Meta.dbTable + '\n' +
'relModelDef: ' + this._relModelDef.Meta.dbTable + '\n' +
'foreignKey: ' + this._foreignKey + '\n' +
'id: ' + this._id);

delete this._cache;

var self = this;
Expand Down Expand Up @@ -536,6 +531,8 @@ QuerySet.prototype._buildFrom = function() {
QuerySet.prototype.delete = function(onComplete) {
this._cache = [];
var self = this;
// TODO : delete dependent objects and ManyToManyFields

db.transaction(function (tx) {
var where = self._buildWhere();
var from = self._buildFrom();
Expand Down

0 comments on commit 67b9b29

Please sign in to comment.