Skip to content

Commit

Permalink
[bug 665183] Make Document.latest_localizable_revision field read-onl…
Browse files Browse the repository at this point in the history
…y in the admin.

This gets rid of the menu which was causing crazy slowness while also hiding the little magnifying glass which doesn't work without Revision also being an admin-registered type.
  • Loading branch information
erikrose committed Jun 17, 2011
1 parent 0fc1e9a commit c59ec7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wiki/admin.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DocumentAdmin(admin.ModelAdmin):
list_filter = ('is_template', 'is_localizable', 'category', 'locale', list_filter = ('is_template', 'is_localizable', 'category', 'locale',
'is_archived', 'allow_discussion') 'is_archived', 'allow_discussion')
raw_id_fields = ('parent',) raw_id_fields = ('parent',)
readonly_fields = ('id', 'current_revision') readonly_fields = ('id', 'current_revision', 'latest_localizable_revision')
search_fields = ('title',) search_fields = ('title',)


@staticmethod @staticmethod
Expand Down

0 comments on commit c59ec7e

Please sign in to comment.