You may get this type of error “no such column” when you change the models.
Try this one
$python manage.py reset thenameofyourapp
$python manage.py syncdb
? :
uses the boolean value of one expression to decide which of two other expressions should be evaluated.?
Expression :
ConditionalExpressiona?b:c?d:e?f:g
means the same as a?b:(c?d:(e?f:g))
.?
appears between the first and second expressions, and :
appears between the second and third expressions.void
method.void
method could appear.byte
or Byte
and the other is of type short
or Short
, then the type of the conditional expression is short
.byte
, short
, or char
, and the other operand is a constant expression (§15.28) of type int
whose value is representable in type T, then the type of the conditional expression is T.Byte
, Short
, or Character
, and the other operand is a constant expression (§15.28) of type int
whose value is representable in the typeU which is the result of applying unboxing conversion to T, then the type of the conditional expression is U.boolean
value is then used to choose either the second or the third operand expression: