Skip to content
Extraits de code Groupes Projets
  1. juin 03, 2016
  2. jan. 12, 2016
    • Jamesie Pic's avatar
      Fresh start on the data model · e1e714be
      Jamesie Pic a rédigé
      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
Chargement en cours