mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-13 13:12:42 +00:00
Use a proper database field for beta releases
This replaces the previous ugly hack where beta versions had a negative number as latestminor, giving a much cleaner model. Requires SQL: ALTER TABLE core_version ADD COLUMN beta boolean NOT NULL DEFAULT 'f'; ALTER TABLE core_version ALTER COLUMN beta DROP DEFAULT; (Yes, we really need to move to something that can do automatic migrations)
This commit is contained in:
@ -13,7 +13,7 @@ class VersionFeed(Feed):
|
||||
title_template = 'core/version_rss_title.html'
|
||||
|
||||
def items(self):
|
||||
return Version.objects.filter(tree__gt=0).filter(latestminor__gte=0)
|
||||
return Version.objects.filter(tree__gt=0).filter(beta=False)
|
||||
|
||||
def item_link(self, obj):
|
||||
return "http://www.postgresql.org/docs/%s/static/%s" % (obj.tree, obj.relnotes)
|
||||
|
Reference in New Issue
Block a user