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
django-representatives
Commits
b8b29fd4
Commit
b8b29fd4
authored
Oct 28, 2012
by
Yohan Boniface
Browse files
When creating a FK to an abstract model, use a string as parameter
parent
4a799ece
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives/models.py
View file @
b8b29fd4
...
...
@@ -36,7 +36,7 @@ class Representative(models.Model):
class
Contact
(
models
.
Model
):
representative
=
models
.
ForeignKey
(
Representative
)
representative
=
models
.
ForeignKey
(
"
Representative
"
)
class
Meta
:
abstract
=
True
...
...
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