Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
9614b0b5
Commit
9614b0b5
authored
Nov 21, 2014
by
Aymeric Barantal
Browse files
blank is not null
parent
704df7f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
campaign/campaign/models.py
View file @
9614b0b5
...
...
@@ -31,6 +31,7 @@ class Argumentary(models.Model):
id
=
models
.
AutoField
(
primary_key
=
True
)
campaign_id
=
models
.
ForeignKey
(
Campaign
)
lang
=
models
.
CharField
(
max_length
=
255
)
text
=
models
.
TextField
(
null
=
True
)
class
CampaignContact
(
models
.
Model
):
...
...
campaign/organization/models.py
View file @
9614b0b5
...
...
@@ -7,7 +7,7 @@ class Organization(models.Model):
id
=
models
.
AutoField
(
primary_key
=
True
)
name
=
models
.
CharField
(
max_length
=
64
)
sip_key
=
models
.
CharField
(
max_length
=
255
)
users
=
models
.
ForeignKey
(
User
,
blank
=
True
)
users
=
models
.
ForeignKey
(
User
,
null
=
True
,
blank
=
True
)
def
__unicode__
(
self
):
return
self
.
name
...
...
@@ -20,7 +20,7 @@ class Group(models.Model):
name
=
models
.
CharField
(
max_length
=
64
)
type
=
models
.
CharField
(
max_length
=
255
,
blank
=
True
)
media
=
models
.
CharField
(
max_length
=
255
,
blank
=
True
)
contacts
=
models
.
ManyToManyField
(
Contact
)
contacts
=
models
.
ManyToManyField
(
Contact
,
null
=
True
,
blank
=
True
)
def
__unicode__
(
self
):
return
self
.
name
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment