Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcicman committed Jul 28, 2009
1 parent 89028ff commit a60481d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cms/templatetags/cms_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def show_menu(context, from_level=0, to_level=100, extra_inactive=0, extra_activ
if root_page:
if isinstance(root_page, int):
root_page = page_queryset.get(pk=root_page)
if isinstance(root_page, PageModel):
if isinstance(root_page, Page):
root_page = page_queryset.get(pk=root_page.id)
elif isinstance(root_page, unicode):
root_page = page_queryset.get(reverse_id=root_page)
Expand Down
3 changes: 1 addition & 2 deletions publisher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class PublisherMeta:
- exlude_fields_append: appends given fields to exclude_fields set
inherited from parents, if there are some
"""

exclude_fields = ['id', 'publisher_is_draft', 'publisher_public', 'publisher_state']
exclude_fields_append = []

Expand Down Expand Up @@ -372,7 +371,7 @@ def _publisher_save_public(self, obj):
next_sibling = self.get_next_filtered_sibling(publisher_is_draft=True, publisher_public__isnull=False)
if next_sibling and next_sibling.publisher_public_id:
obj.move_to(next_sibling.publisher_public, position="left")
# or none structural changes, just save
# or none structural change, just save
return obj.save()

# install publisher on first import from this module...
Expand Down

0 comments on commit a60481d

Please sign in to comment.