mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #13749 -- Added link from admin site to front-end site.
Thanks romankrv for the suggestion.
This commit is contained in:
parent
6aae07fe61
commit
a81af7f49d
6 changed files with 28 additions and 0 deletions
|
@ -832,6 +832,7 @@ class FunkyTagAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
site = admin.AdminSite(name="admin")
|
||||
site.site_url = '/my-site-url/'
|
||||
site.register(Article, ArticleAdmin)
|
||||
site.register(CustomArticle, CustomArticleAdmin)
|
||||
site.register(Section, save_as=True, inlines=[ArticleInline])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue