diff options
-rw-r--r-- | config/base_urls.py | 2 | ||||
-rw-r--r-- | design/templates/admin/photos/luxgallery/change_form.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/config/base_urls.py b/config/base_urls.py index 687ad88..e3cfa78 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -47,7 +47,7 @@ urlpatterns = [ path(r'walks/', include('locations.walk_urls')), path(r'locations/', include('locations.urls')), #path(r'expenses/', include('expenses.urls', namespace='expenses')), - #path(r'photos/', include('photos.urls')), + path(r'photos/', include('media.urls')), path(r'guide/', include('posts.urls.guide_urls', namespace='guide')), path(r'essay/', include('posts.urls.essay_urls')), re_path(r'^essay/$', RedirectView.as_view(url='/essays/')), diff --git a/design/templates/admin/photos/luxgallery/change_form.html b/design/templates/admin/photos/luxgallery/change_form.html index 31c9914..1cdfde0 100644 --- a/design/templates/admin/photos/luxgallery/change_form.html +++ b/design/templates/admin/photos/luxgallery/change_form.html @@ -12,7 +12,7 @@ $(function(){ $('#id_images').css('width', '500px').css('height', '400px'); $('#id_images option').each(function(){ $(this).attr('style', 'background: url('+$(this).text().split("qq")[1]+') no-repeat; background-size: 120px 80px; height: 80px; padding-left: 125px; line-height: 80px; margin-bottom: 4px; padding-bottom: 5px;border-bottom: #eee 1px solid;'); - $(this).html($(this).text().split("qq")[0] + ' – <a href="/admin/photos/luximage/'+ $(this).text().split("qq")[2]+'/change/">edit</a>') + $(this).html($(this).text().split("qq")[0] + ' – <a href="/admin/media/luximage/'+ $(this).text().split("qq")[2]+'/change/">edit</a>') }); }); </script> |