Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

update member - party relationship for knesset 20 #341

Closed
OriHoch opened this issue May 5, 2015 · 4 comments
Closed

update member - party relationship for knesset 20 #341

OriHoch opened this issue May 5, 2015 · 4 comments
Assignees

Comments

@OriHoch
Copy link

OriHoch commented May 5, 2015

members of knesset 20 should have current part field pointing to the party at knesset 20

currently they have party at knesset 19, or no party..

this can be done manually - in the admin - search for member name - edit - change current party field - save

or - can write a script to do it (maybe even from django shell)

@daonb
Copy link
Member

daonb commented May 6, 2015

I've updated the current_party and the site shows now 100 MKs.
Seems like there were only 100 MKs in the system:

Membership.objects.filter(party__knesset__id=20).count()
100

Any ideas?

@OriHoch
Copy link
Author

OriHoch commented May 6, 2015

there are MKs which don't have any value in current_party field

and also some that don't belong to a party

(if current_party field is set - still need to set relation to party object separately..)

😞

@OriHoch
Copy link
Author

OriHoch commented May 6, 2015

examples:

party without all mk relations: https://oknesset.org/admin/mks/party/32/

mk without current_party relation: https://oknesset.org/admin/mks/member/941/

there is some code that does those relations but it might need some adjustments to work with knesset 20

@OriHoch
Copy link
Author

OriHoch commented May 10, 2015

I updated everything manually

@OriHoch OriHoch closed this as completed May 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants