Slide 7
Slide 7 text
But this still works:
u
s
e
r = U
s
e
r
(
u
s
e
r
n
a
m
e
=
'
a
l
i
c
e
'
,
s
t
a
t
e
=
'
C
a
n
a
d
a
'
,
c
r
e
a
t
e
d
_
a
t
=
'
S
t
a
r
d
a
t
e 7
1
3
0
.
4
'
,
)
u
s
e
r
.
s
a
v
e
(
)
Django expects model instances to be updated through forms,
even though most projects do not do this.
Solution: always use forms or call M
o
d
e
l
.
f
u
l
l
_
c
l
e
a
n
(
) . Or add
SQL C
H
E
C
K constraints manually.