Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.438 kB
# -*- coding: utf-8 -*-
from dbgettext.registry import registry, Options
from models import Page
from django.conf import settings
class PageOptions(Options):
attributes = ('get_title', 'get_slug')
translate_if = {'published' : True,}
def get_path_identifier(self, obj):
return obj.get_path()
if settings.CMS_MODERATOR:
PageOptions.translate_if['publisher_is_draft'] = False
registry.register(Page, PageOptions)
Jump to Line
Something went wrong with that request. Please try again.