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
Political Memory
memopol
Commits
4bf3a6e5
Commit
4bf3a6e5
authored
May 30, 2016
by
Nicolas Joyard
Browse files
Fix position FK to representatives
parent
a88381e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives_positions/models.py
View file @
4bf3a6e5
...
...
@@ -3,9 +3,10 @@ from django.core.urlresolvers import reverse
from
django.template.defaultfilters
import
truncatewords
from
taggit.managers
import
TaggableManager
from
representatives.models
import
Representative
class
Position
(
models
.
Model
):
representative
=
models
.
ForeignKey
(
'representatives.r
epresentative
'
,
representative
=
models
.
ForeignKey
(
R
epresentative
,
related_name
=
'positions'
)
datetime
=
models
.
DateField
()
text
=
models
.
TextField
()
...
...
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