Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
campaign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
d2be7fff
Commit
d2be7fff
authored
Nov 22, 2014
by
Aymeric Barantal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc for Argumentary and __unicode__ repr
parent
39efa37d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
picampaign/campaign/models.py
picampaign/campaign/models.py
+5
-1
No files found.
picampaign/campaign/models.py
View file @
d2be7fff
...
...
@@ -2,7 +2,7 @@ from django.db import models
class
Contact
(
models
.
Model
):
"""Contact model. Person to be call by users"""
"""Contact model. Person to be call
ed
by users"""
id
=
models
.
AutoField
(
primary_key
=
True
)
first_name
=
models
.
CharField
(
max_length
=
64
)
last_name
=
models
.
CharField
(
max_length
=
64
)
...
...
@@ -28,11 +28,15 @@ class Campaign(models.Model):
class
Argumentary
(
models
.
Model
):
"""Argumentary in a given language for a campaign"""
id
=
models
.
AutoField
(
primary_key
=
True
)
campaign
=
models
.
ForeignKey
(
Campaign
)
lang
=
models
.
CharField
(
max_length
=
255
)
text
=
models
.
TextField
(
null
=
True
)
def
__unicode__
(
self
):
return
'Argumentary in %s for %s'
%
(
self
.
lang
,
self
.
campaign
.
title
)
class
CampaignContact
(
models
.
Model
):
"""List contact related to a campaign with a given weight"""
...
...
Write
Preview
Markdown
is supported
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