-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows user to enforce unique or unique together constraints against tile values #4714
Conversation
name='ConstraintModel', | ||
fields=[ | ||
('constraintid', models.UUIDField(default=uuid.uuid1, primary_key=True, serialize=False)), | ||
('card', models.ForeignKey(db_column='cardid', on_delete=django.db.models.deletion.CASCADE, to='models.CardModel')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (132 > 119 characters)
name='ConstraintXNode', | ||
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid1, primary_key=True, serialize=False)), | ||
('constraint', models.ForeignKey(db_column='constraintid', on_delete=django.db.models.deletion.CASCADE, to='models.ConstraintModel')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (150 > 119 characters)
fields=[ | ||
('id', models.UUIDField(default=uuid.uuid1, primary_key=True, serialize=False)), | ||
('constraint', models.ForeignKey(db_column='constraintid', on_delete=django.db.models.deletion.CASCADE, to='models.ConstraintModel')), | ||
('node', models.ForeignKey(db_column='nodeid', on_delete=django.db.models.deletion.CASCADE, to='models.Node')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E501 line too long (127 > 119 characters)
arches/app/media/js/models/card.js
Outdated
}; | ||
|
||
this.uniqueToAllInstances.subscribe(function(val){ | ||
console.log(val); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected console statement. (no-console)
arches/app/media/js/models/card.js
Outdated
|
||
var updateConfigsWithUniqueNodes = function(val) { | ||
self.configJSON({uniqueNodes: val}); | ||
console.log(self.configJSON); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected console statement. (no-console)
arches/app/media/js/models/card.js
Outdated
var updateConfigsWithUniqueNodes = function(val) { | ||
self.configJSON({uniqueNodes: val}); | ||
console.log(self.configJSON); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon. (semi)
arches/app/media/js/models/card.js
Outdated
this.updateConstraints = function(){ | ||
var self = this; | ||
return function(){ | ||
console.log(self.constraints()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected console statement. (no-console)
arches/app/media/js/models/card.js
Outdated
@@ -327,6 +366,7 @@ define([ | |||
}, | |||
|
|||
save: function(callback) { | |||
console.log(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected console statement. (no-console)
Allows user to enforce unique or unique together constraints against tile values. re #4375.