def get_urls(self):
urls = super(TreeAdmin, self).get_urls()<EOL>prefix_change = '<STR_LIT>' if DJANGO_POST_19 else '<STR_LIT>'<EOL>sitetree_urls = [<EOL>url(r'<STR_LIT>', redirects_handler, name=get_tree_item_url_name('<STR_LIT>')),<EOL>url(r'<STR_LIT>' % prefix_change,<EOL>self.admin_site.admin_view(self.tree_admin.item_add), name=get_tree_item_url_name('<STR_LIT>')),<EOL>url(r'<STR_LIT>' % prefix_change,<EOL>self.admin_site.admin_view(self.tree_admin.item_edit), name=get_tree_item_url_name('<STR_LIT>')),<EOL>url(r'<STR_LIT>' % prefix_change,<EOL>self.admin_site.admin_view(self.tree_admin.item_edit), name=get_tree_item_url_name('<STR_LIT>')),<EOL>url(r'<STR_LIT>' % prefix_change,<EOL>self.admin_site.admin_view(self.tree_admin.item_delete), name=get_tree_item_url_name('<STR_LIT>')),<EOL>url(r'<STR_LIT>' % prefix_change,<EOL>self.admin_site.admin_view(self.tree_admin.item_history), name=get_tree_item_url_name('<STR_LIT>')),<EOL>url(r'<STR_LIT>' % prefix_change,<EOL>self.admin_site.admin_view(self.tree_admin.item_move), name=get_tree_item_url_name('<STR_LIT>')),<EOL>]<EOL>if not DJANGO_POST_19:<EOL><INDENT>sitetree_urls = patterns_func('<STR_LIT>', *sitetree_urls)<EOL><DEDENT>if SMUGGLER_INSTALLED:<EOL><INDENT>sitetree_urls += (url(r'<STR_LIT>', self.admin_site.admin_view(self.dump_view), name='<STR_LIT>'),)<EOL><DEDENT>return sitetree_urls + urls<EOL>
Manages not only TreeAdmin URLs but also TreeItemAdmin URLs.