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

Commit

Permalink
fixes #796 - proposals should be ordered by date
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch authored and alonisser committed Jan 14, 2017
1 parent 59c240d commit 75dc644
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions laws/models/proposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def get_last_private_proposal_date(self):
class PrivateProposal(BillProposal):
class Meta:
app_label = 'laws'
ordering = ['date']

proposal_id = models.IntegerField(blank=True, null=True)
proposers = models.ManyToManyField('mks.Member', related_name='proposals_proposed', blank=True, null=True)
Expand All @@ -71,6 +72,7 @@ def get_last_booklet(self):
class KnessetProposal(BillProposal):
class Meta:
app_label = 'laws'
ordering = ['date']

committee = models.ForeignKey('committees.Committee', related_name='bills', blank=True, null=True)
booklet_number = models.IntegerField(blank=True, null=True)
Expand All @@ -90,6 +92,7 @@ def get_last_booklet(self):
class GovProposal(BillProposal):
class Meta:
app_label = 'laws'
ordering = ['date']

booklet_number = models.IntegerField(blank=True, null=True)
bill = models.OneToOneField('Bill', related_name='gov_proposal', blank=True, null=True)
Expand Down

0 comments on commit 75dc644

Please sign in to comment.