1. 29 Sep, 2016 3 commits
  2. 03 Jun, 2016 1 commit
  3. 12 Jan, 2016 1 commit
    • Jamesie Pic's avatar
      Fresh start on the data model · e1e714be
      Jamesie Pic authored
      This is completely backward-incompatible and was rushed before the
      release - nobody was going to pay the interrest on the technical debt
      this commit remove to support migrations since nobody has an instance in
      production.
      
      Memopol{Representative,Vote,Dossier} subclasses are gone. Django model
      inheritance is fun but comes at a price - hacks like
      create_child_instance_from_parent would end up everywhere. Use a simple
      one to one relation when you don't intend to have several subclasses of
      a model which is the case here.
      
      Country and current mandates are not pre-calculated and stored in the
      database anymore, instead they are pre-fetched which requires
      django-representatives>=0.0.7
      
      Score related code was rewritten in votes.models, along with the
      Recommendation model. We're still not calculating it on the fly here
      because that would require some SQL backflips which will take a bit of
      time to do properly.
      e1e714be
  4. 13 Dec, 2015 2 commits
    • Jamesie Pic's avatar
      Added parltrack_import_representatives command · d913e263
      Jamesie Pic authored
      It includes latest research by Arnaud Fabre but I ended up squashing all
      commits and adding my own fixups in this commit.
      
      Also:
      
      - the import command is tested,
      - code was PEP8'ed
      - untested code was removed,
      - duplicate country Israel was removed and migration was added,
      - requirements were deleted in favor of proper setup.py.
      d913e263
    • Jamesie Pic's avatar
      Added parltrack import commands in contrib · 04c8dffa
      Jamesie Pic authored
      Also:
      
      - code was PEP8'ed
      - tests were added,
      - untested code was removed,
      - setup.py was fixed and requirements.txt is gone,
      04c8dffa