Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/akariv/Open-Knesset
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Dec 27, 2010
2 parents fd83c18 + 0eb528b commit 68ee523
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ $ bin/django runserver
# if you get the add_persons_aliases alert try this:
$ bin/django migrate --fake persons 0001

Updating the translation strings:
================================
$ cd src/knesset
$ ../../bin/django makemessages -a -e txt,html
<edit src/knesset/locale/he/LC_MESSAGES/django.po, find your strings and change it to the correct translation>
$ ../../bin/django compilemessages

Windows Users:
--------------

Expand Down
11 changes: 10 additions & 1 deletion src/knesset/feeds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib.syndication.feeds import Feed
from django.contrib.comments.models import Comment
from knesset.laws.models import Vote
from knesset.laws.models import Vote, Bill

class Comments(Feed):
title = "Open Knesset | Comments feed"
Expand All @@ -20,3 +20,12 @@ def items(self):
return Vote.objects.order_by('-time')[:20]


class Bills(Feed):
title = "Open Knesset | Bills feed"
link = "/bills/"
description = "Bills on Open Knesset website"

def items(self):
return Bill.objects.order_by('-id')[:20]


3 changes: 2 additions & 1 deletion src/knesset/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

feeds = {
'comments': Comments,
'votes': Votes
'votes': Votes,
'bills': Bills,
}


Expand Down

0 comments on commit 68ee523

Please sign in to comment.