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
c721b074
Commit
c721b074
authored
Jun 14, 2017
by
Okhin
Browse files
Fixing the models for argumentarys
parent
1d0db640
Pipeline
#1149
passed with stage
in 45 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
picampaign/campaign/models.py
View file @
c721b074
...
...
@@ -24,8 +24,8 @@ class Argumentary(models.Model):
"""Argumentary for a campaign"""
id
=
models
.
AutoField
(
primary_key
=
True
)
campaign
=
models
.
ForeignKey
(
Campaign
)
title
=
RichText
Field
(
max_length
=
255
,
verbose_name
=
_
(
'title'
),
null
=
True
,
blank
=
True
)
text
=
models
.
TextField
(
null
=
True
)
title
=
models
.
Char
Field
(
max_length
=
255
,
verbose_name
=
_
(
'title'
),
null
=
True
,
blank
=
True
)
text
=
Rich
TextField
(
null
=
True
)
def
__str__
(
self
):
args
=
{
'title'
:
self
.
campaign
.
title
}
...
...
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