Skip to content
GitLab
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
bd12c3a5
Commit
bd12c3a5
authored
May 25, 2015
by
Arnaud Fabre
Browse files
fixes memopol with last applications updates
parent
6d15512b
Changes
2
Hide whitespace changes
Inline
Side-by-side
legislature/management/commands/
legislature_
update
s
_m
odel
s.py
→
legislature/management/commands/update_m
emopol_representative
s.py
View file @
bd12c3a5
...
...
@@ -33,15 +33,14 @@ class Command(BaseCommand):
except
MGroup
.
DoesNotExist
:
mgroup
=
MGroup
(
group_ptr
=
mandate
.
group
)
mgroup
.
__dict__
.
update
(
mandate
.
group
.
__dict__
)
mgroup
.
save
()
#print(mgroup)
mgroup
.
save
()
mmandate
.
mgroup
=
mgroup
mmandate
.
save
()
mmandate
.
update_active
()
mrepresentative
.
update_country
()
mrepresentative
.
update_active
()
#
mrepresentative.update_active()
mrepresentative
.
save
()
print
(
"%s/%s
\r
"
%
(
i
,
n
)),
...
...
legislature/migrations/0001_initial.py
View file @
bd12c3a5
...
...
@@ -36,7 +36,6 @@ class Migration(migrations.Migration):
name
=
'MRepresentative'
,
fields
=
[
(
'representative_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'representatives.Representative'
)),
(
'active'
,
models
.
BooleanField
(
default
=
False
)),
(
'country'
,
models
.
ForeignKey
(
to
=
'representatives.Country'
,
null
=
True
)),
],
options
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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