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
207a3cf3
Commit
207a3cf3
authored
Oct 27, 2012
by
Yohan Boniface
Browse files
Make Representative abstract (user must inherit from it)
parent
4c8d19fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives/models.py
View file @
207a3cf3
# -*- coding:utf-8 -*-
from
django.db
import
models
...
...
@@ -29,6 +31,9 @@ class Representative(models.Model):
birth_date
=
models
.
DateField
(
blank
=
True
,
null
=
True
)
cv
=
models
.
TextField
(
blank
=
True
,
null
=
True
)
class
Meta
:
abstract
=
True
class
Contact
(
models
.
Model
):
representative
=
models
.
ForeignKey
(
Representative
)
...
...
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