From 74a0ed4a5d88939e215b447a3d41aa67e7654c87 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Tue, 26 Feb 2019 09:55:57 +0100 Subject: [PATCH] Move useradmin in a separate app --- re2o/settings.py | 4 + re2o/urls.py | 2 +- templates/locale/fr/LC_MESSAGES/django.po | 276 ++---------------- {re2o => useradmin}/admin.py | 0 useradmin/locale/fr/LC_MESSAGES/django.po | 260 +++++++++++++++++ .../static}/admin/css/changelists.css | 0 .../templates}/admin/actions.html | 6 +- .../templates}/admin/app_index.html | 0 .../templates}/admin/base_site.html | 0 .../templates}/admin/change_form.html | 0 .../templates}/admin/change_list.html | 0 .../templates}/admin/change_list_results.html | 0 .../templates}/admin/delete_confirmation.html | 0 .../admin/delete_selected_confirmation.html | 0 .../templates}/admin/edit_inline/stacked.html | 0 .../templates}/admin/edit_inline/tabular.html | 0 .../templates}/admin/includes/fieldset.html | 0 .../templates}/admin/index.html | 0 .../templates}/admin/object_history.html | 0 .../templates}/admin/pagination.html | 0 .../admin/related_widget_wrapper.html | 0 .../templates}/admin/search_form.html | 0 .../templates}/admin/submit_line.html | 0 .../templates}/reversion/change_list.html | 0 users/admin.py | 2 +- 25 files changed, 299 insertions(+), 251 deletions(-) rename {re2o => useradmin}/admin.py (100%) create mode 100644 useradmin/locale/fr/LC_MESSAGES/django.po rename {static => useradmin/static}/admin/css/changelists.css (100%) rename {templates => useradmin/templates}/admin/actions.html (74%) rename {templates => useradmin/templates}/admin/app_index.html (100%) rename {templates => useradmin/templates}/admin/base_site.html (100%) rename {templates => useradmin/templates}/admin/change_form.html (100%) rename {templates => useradmin/templates}/admin/change_list.html (100%) rename {templates => useradmin/templates}/admin/change_list_results.html (100%) rename {templates => useradmin/templates}/admin/delete_confirmation.html (100%) rename {templates => useradmin/templates}/admin/delete_selected_confirmation.html (100%) rename {templates => useradmin/templates}/admin/edit_inline/stacked.html (100%) rename {templates => useradmin/templates}/admin/edit_inline/tabular.html (100%) rename {templates => useradmin/templates}/admin/includes/fieldset.html (100%) rename {templates => useradmin/templates}/admin/index.html (100%) rename {templates => useradmin/templates}/admin/object_history.html (100%) rename {templates => useradmin/templates}/admin/pagination.html (100%) rename {templates => useradmin/templates}/admin/related_widget_wrapper.html (100%) rename {templates => useradmin/templates}/admin/search_form.html (100%) rename {templates => useradmin/templates}/admin/submit_line.html (100%) rename {templates => useradmin/templates}/reversion/change_list.html (100%) diff --git a/re2o/settings.py b/re2o/settings.py index f2557b44..d804dd40 100644 --- a/re2o/settings.py +++ b/re2o/settings.py @@ -55,6 +55,9 @@ LOGIN_URL = '/login/' # The URL for login page LOGIN_REDIRECT_URL = '/' # The URL for redirecting after login # Application definition +CUSTOM_ADMIN = ( + 'useradmin', +) DJANGO_CONTRIB_APPS = ( 'django.contrib.admin', 'django.contrib.auth', @@ -79,6 +82,7 @@ LOCAL_APPS = ( 'logs', ) INSTALLED_APPS = ( + CUSTOM_ADMIN + DJANGO_CONTRIB_APPS + EXTERNAL_CONTRIB_APPS + LOCAL_APPS + diff --git a/re2o/urls.py b/re2o/urls.py index ee3f56fa..62be0a1a 100644 --- a/re2o/urls.py +++ b/re2o/urls.py @@ -48,7 +48,7 @@ from django.conf.urls import include, url from django.contrib import admin from django.contrib.auth import views as auth_views -from .admin import user_admin_site +from useradmin.admin import user_admin_site from .views import index, about_page, contact_page handler500 = 're2o.views.handler500' diff --git a/templates/locale/fr/LC_MESSAGES/django.po b/templates/locale/fr/LC_MESSAGES/django.po index 8559c3c5..79fcc6fc 100644 --- a/templates/locale/fr/LC_MESSAGES/django.po +++ b/templates/locale/fr/LC_MESSAGES/django.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: 2.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-02-25 20:36+0100\n" +"POT-Creation-Date: 2019-02-26 09:52+0100\n" "PO-Revision-Date: 2018-03-31 16:09+0002\n" "Last-Translator: Laouen Fernet \n" "Language-Team: \n" @@ -30,237 +30,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: templates/admin/actions.html:5 -msgid "Run the selected action" -msgstr "" - -#: templates/admin/actions.html:5 -msgid "Go" -msgstr "" - -#: templates/admin/actions.html:11 -msgid "Click here to select the objects across all pages" -msgstr "" - -#: templates/admin/actions.html:11 -#, python-format -msgid "Select all %(total_count)s %(module_name)s" -msgstr "" - -#: templates/admin/actions.html:13 -msgid "Clear selection" -msgstr "" - -#: templates/admin/app_index.html:10 templates/admin/change_form.html:19 -#: templates/admin/change_list.html:32 -#: templates/admin/delete_confirmation.html:15 -#: templates/admin/delete_selected_confirmation.html:15 -#: templates/admin/object_history.html:7 templates/base.html:72 -msgid "Home" -msgstr "" - -#: templates/admin/base_site.html:7 -msgid "Django administration" -msgstr "Administration Django" - -#: templates/admin/change_form.html:22 templates/admin/change_list.html:50 -#, python-format -msgid "Add %(name)s" -msgstr "" - -#: templates/admin/change_form.html:34 templates/admin/object_history.html:11 -#: templates/buttons/history.html:26 templates/buttons/history.html:27 -msgid "History" -msgstr "" - -#: templates/admin/change_form.html:36 -#: templates/admin/edit_inline/stacked.html:22 -#: templates/admin/edit_inline/tabular.html:36 -msgid "View on site" -msgstr "" - -#: templates/admin/change_form.html:48 templates/admin/change_list.html:59 -msgid "Please correct the error below." -msgstr "" - -#: templates/admin/change_form.html:48 templates/admin/change_list.html:59 -msgid "Please correct the errors below." -msgstr "" - -#: templates/admin/change_list.html:70 -msgid "Filter" -msgstr "" - -#: templates/admin/change_list_results.html:18 -msgid "Remove from sorting" -msgstr "" - -#: templates/admin/change_list_results.html:19 -#, python-format -msgid "Sorting priority: %(priority_number)s" -msgstr "" - -#: templates/admin/change_list_results.html:20 -msgid "Toggle sorting" -msgstr "" - -#: templates/admin/delete_confirmation.html:19 -#: templates/admin/submit_line.html:12 templates/admin/submit_line.html:15 -#: templates/buttons/suppr.html:27 -msgid "Delete" -msgstr "" - -#: templates/admin/delete_confirmation.html:25 -#, python-format -msgid "" -"Deleting the %(object_name)s '%(escaped_object)s' would result in deleting " -"related objects, but your account doesn't have permission to delete the " -"following types of objects:" -msgstr "" - -#: templates/admin/delete_confirmation.html:32 -#, python-format -msgid "" -"Deleting the %(object_name)s '%(escaped_object)s' would require deleting the " -"following protected related objects:" -msgstr "" - -#: templates/admin/delete_confirmation.html:39 -#, python-format -msgid "" -"Are you sure you want to delete the %(object_name)s \"%(escaped_object)s\"? " -"All of the following related items will be deleted:" -msgstr "" - -#: templates/admin/delete_confirmation.html:41 -#: templates/admin/delete_selected_confirmation.html:40 -msgid "Objects" -msgstr "" - -#: templates/admin/delete_confirmation.html:48 -#: templates/admin/delete_selected_confirmation.html:51 -msgid "Yes, I'm sure" -msgstr "" - -#: templates/admin/delete_confirmation.html:49 -#: templates/admin/delete_selected_confirmation.html:52 -msgid "No, take me back" -msgstr "" - -#: templates/admin/delete_selected_confirmation.html:18 -msgid "Delete multiple objects" -msgstr "" - -#: templates/admin/delete_selected_confirmation.html:24 -#, python-format -msgid "" -"Deleting the selected %(objects_name)s would result in deleting related " -"objects, but your account doesn't have permission to delete the following " -"types of objects:" -msgstr "" - -#: templates/admin/delete_selected_confirmation.html:31 -#, python-format -msgid "" -"Deleting the selected %(objects_name)s would require deleting the following " -"protected related objects:" -msgstr "" - -#: templates/admin/delete_selected_confirmation.html:38 -#, python-format -msgid "" -"Are you sure you want to delete the selected %(objects_name)s? All of the " -"following objects and their related items will be deleted:" -msgstr "" - -#: templates/admin/edit_inline/tabular.html:21 -msgid "Delete?" -msgstr "" - -#: templates/admin/index.html:19 -#, python-format -msgid "Models in the %(name)s application" -msgstr "" - -#: templates/admin/index.html:34 -msgid "You don't have permission to edit anything." -msgstr "" - -#: templates/admin/object_history.html:23 -msgid "Date/time" -msgstr "" - -#: templates/admin/object_history.html:24 -msgid "User" -msgstr "" - -#: templates/admin/object_history.html:25 -msgid "Action" -msgstr "" - -#: templates/admin/object_history.html:39 -msgid "" -"This object doesn't have a change history. It probably wasn't added via this " -"admin site." -msgstr "" - -#: templates/admin/pagination.html:11 templates/admin/search_form.html:13 -msgid "Show all" -msgstr "" - -#: templates/admin/pagination.html:12 templates/admin/submit_line.html:5 -#: templates/admin/submit_line.html:7 -msgid "Save" -msgstr "" - -#: templates/admin/related_widget_wrapper.html:10 -#, python-format -msgid "Change selected %(model)s" -msgstr "" - -#: templates/admin/related_widget_wrapper.html:17 -#, python-format -msgid "Add another %(model)s" -msgstr "" - -#: templates/admin/related_widget_wrapper.html:24 -#, python-format -msgid "Delete selected %(model)s" -msgstr "" - -#: templates/admin/search_form.html:6 templates/admin/search_form.html:8 -#: templates/base.html:169 -msgid "Search" -msgstr "" - -#: templates/admin/search_form.html:13 -#, python-format -msgid "%(counter)s result" -msgid_plural "%(counter)s results" -msgstr[0] "" -msgstr[1] "" - -#: templates/admin/search_form.html:13 -#, python-format -msgid "%(full_result_count)s total" -msgstr "" - -#: templates/admin/submit_line.html:19 templates/admin/submit_line.html:21 -msgid "Save as new" -msgstr "" - -#: templates/admin/submit_line.html:25 templates/admin/submit_line.html:28 -msgid "Save and add another" -msgstr "" - -#: templates/admin/submit_line.html:32 templates/admin/submit_line.html:35 -msgid "Save and continue editing" -msgstr "" - #: templates/base.html:44 templates/errors/404.html:35 msgid "Networking managing website endorsed by FedeRez." msgstr "Site de gestion de réseau soutenu par FedeRez." +#: templates/base.html:72 +msgid "Home" +msgstr "" + #: templates/base.html:96 msgid "Users" msgstr "Utilisateurs" @@ -326,6 +103,10 @@ msgstr "S'inscrire" msgid "Log in" msgstr "Se connecter" +#: templates/base.html:169 +msgid "Search" +msgstr "" + #: templates/base.html:188 msgid "My profile" msgstr "Mon profil" @@ -351,59 +132,59 @@ msgstr "Accès Internet" msgid "Until %(end_access_date)s" msgstr "Jusqu'au %(end_access_date)s" -#: templates/base.html:246 +#: templates/base.html:245 msgid "Disabled" msgstr "Désactivé" -#: templates/base.html:251 +#: templates/base.html:250 msgid "Membership" msgstr "Adhésion" -#: templates/base.html:255 +#: templates/base.html:254 #, python-format msgid "Until %(end_adhesion_date)s" msgstr "Jusqu'au %(end_adhesion_date)s" -#: templates/base.html:258 +#: templates/base.html:256 msgid "Non member" msgstr "Non adhérent" -#: templates/base.html:267 +#: templates/base.html:265 msgid "View my profile" msgstr "Voir mon profil" -#: templates/base.html:272 +#: templates/base.html:270 msgid "You are not logged in." msgstr "Vous n'êtes pas connecté." -#: templates/base.html:279 +#: templates/base.html:277 #, python-format msgid "%(nb)s active machine" msgid_plural "%(nb)s active machines" msgstr[0] "%(nb)s machine active" msgstr[1] "%(nb)s machines actives" -#: templates/base.html:289 +#: templates/base.html:287 msgid "View my machines" msgstr "Voir mes machines" -#: templates/base.html:302 +#: templates/base.html:300 msgid "Back to top" msgstr "Retour en haut" -#: templates/base.html:304 +#: templates/base.html:302 msgid "powered by" msgstr "propulsé par" -#: templates/base.html:306 +#: templates/base.html:304 msgid "Brought to you with ." msgstr "Codé avec ." -#: templates/base.html:309 +#: templates/base.html:307 msgid "About this website" msgstr "À propos de ce site" -#: templates/base.html:312 +#: templates/base.html:310 msgid "" "This software is under the terms of the GPLv2 License." @@ -419,6 +200,10 @@ msgstr "Ajouter" msgid "Edit" msgstr "Modifier" +#: templates/buttons/history.html:26 templates/buttons/history.html:27 +msgid "History" +msgstr "" + #: templates/buttons/setlang.html:34 msgid "Translation in development" msgstr "Traduction en développement" @@ -431,6 +216,10 @@ msgstr "Tri croissant" msgid "Descending sort" msgstr "Tri décroissant" +#: templates/buttons/suppr.html:27 +msgid "Delete" +msgstr "" + #: templates/errors/404.html:39 msgid "404 error: page not found" msgstr "Erreur 404 : page non trouvée" @@ -529,8 +318,3 @@ msgstr "Dernière page" #: templates/registration/login.html:40 msgid "Forgotten password?" msgstr "Mot de passe oublié ?" - -#: templates/reversion/change_list.html:8 -#, python-format -msgid "Recover deleted %(name)s" -msgstr "Récupérer des %(name)s supprimés" diff --git a/re2o/admin.py b/useradmin/admin.py similarity index 100% rename from re2o/admin.py rename to useradmin/admin.py diff --git a/useradmin/locale/fr/LC_MESSAGES/django.po b/useradmin/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 00000000..5d45520b --- /dev/null +++ b/useradmin/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,260 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-02-26 09:52+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: useradmin/templates/admin/actions.html:5 +msgid "Run the selected action" +msgstr "" + +#: useradmin/templates/admin/actions.html:5 +msgid "Go" +msgstr "" + +#: useradmin/templates/admin/actions.html:11 +msgid "Click here to select the objects across all pages" +msgstr "" + +#: useradmin/templates/admin/actions.html:11 +#, python-format +msgid "Select all %(total_count)s %(module_name)s" +msgstr "" + +#: useradmin/templates/admin/actions.html:13 +msgid "Clear selection" +msgstr "" + +#: useradmin/templates/admin/app_index.html:10 +#: useradmin/templates/admin/change_form.html:19 +#: useradmin/templates/admin/change_list.html:32 +#: useradmin/templates/admin/delete_confirmation.html:15 +#: useradmin/templates/admin/delete_selected_confirmation.html:15 +#: useradmin/templates/admin/object_history.html:7 +msgid "Home" +msgstr "" + +#: useradmin/templates/admin/base_site.html:7 +msgid "Django administration" +msgstr "Administration Django" + +#: useradmin/templates/admin/change_form.html:22 +#: useradmin/templates/admin/change_list.html:50 +#, python-format +msgid "Add %(name)s" +msgstr "" + +#: useradmin/templates/admin/change_form.html:34 +#: useradmin/templates/admin/object_history.html:11 +msgid "History" +msgstr "" + +#: useradmin/templates/admin/change_form.html:36 +#: useradmin/templates/admin/edit_inline/stacked.html:22 +#: useradmin/templates/admin/edit_inline/tabular.html:36 +msgid "View on site" +msgstr "" + +#: useradmin/templates/admin/change_form.html:48 +#: useradmin/templates/admin/change_list.html:59 +msgid "Please correct the error below." +msgstr "" + +#: useradmin/templates/admin/change_form.html:48 +#: useradmin/templates/admin/change_list.html:59 +msgid "Please correct the errors below." +msgstr "" + +#: useradmin/templates/admin/change_list.html:70 +msgid "Filter" +msgstr "" + +#: useradmin/templates/admin/change_list_results.html:18 +msgid "Remove from sorting" +msgstr "" + +#: useradmin/templates/admin/change_list_results.html:19 +#, python-format +msgid "Sorting priority: %(priority_number)s" +msgstr "" + +#: useradmin/templates/admin/change_list_results.html:20 +msgid "Toggle sorting" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:19 +#: useradmin/templates/admin/submit_line.html:12 +#: useradmin/templates/admin/submit_line.html:15 +msgid "Delete" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:25 +#, python-format +msgid "" +"Deleting the %(object_name)s '%(escaped_object)s' would result in deleting " +"related objects, but your account doesn't have permission to delete the " +"following types of objects:" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:32 +#, python-format +msgid "" +"Deleting the %(object_name)s '%(escaped_object)s' would require deleting the " +"following protected related objects:" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:39 +#, python-format +msgid "" +"Are you sure you want to delete the %(object_name)s \"%(escaped_object)s\"? " +"All of the following related items will be deleted:" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:41 +#: useradmin/templates/admin/delete_selected_confirmation.html:40 +msgid "Objects" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:48 +#: useradmin/templates/admin/delete_selected_confirmation.html:51 +msgid "Yes, I'm sure" +msgstr "" + +#: useradmin/templates/admin/delete_confirmation.html:49 +#: useradmin/templates/admin/delete_selected_confirmation.html:52 +msgid "No, take me back" +msgstr "" + +#: useradmin/templates/admin/delete_selected_confirmation.html:18 +msgid "Delete multiple objects" +msgstr "" + +#: useradmin/templates/admin/delete_selected_confirmation.html:24 +#, python-format +msgid "" +"Deleting the selected %(objects_name)s would result in deleting related " +"objects, but your account doesn't have permission to delete the following " +"types of objects:" +msgstr "" + +#: useradmin/templates/admin/delete_selected_confirmation.html:31 +#, python-format +msgid "" +"Deleting the selected %(objects_name)s would require deleting the following " +"protected related objects:" +msgstr "" + +#: useradmin/templates/admin/delete_selected_confirmation.html:38 +#, python-format +msgid "" +"Are you sure you want to delete the selected %(objects_name)s? All of the " +"following objects and their related items will be deleted:" +msgstr "" + +#: useradmin/templates/admin/edit_inline/tabular.html:21 +msgid "Delete?" +msgstr "" + +#: useradmin/templates/admin/index.html:19 +#, python-format +msgid "Models in the %(name)s application" +msgstr "" + +#: useradmin/templates/admin/index.html:34 +msgid "You don't have permission to edit anything." +msgstr "" + +#: useradmin/templates/admin/object_history.html:23 +msgid "Date/time" +msgstr "" + +#: useradmin/templates/admin/object_history.html:24 +msgid "User" +msgstr "" + +#: useradmin/templates/admin/object_history.html:25 +msgid "Action" +msgstr "" + +#: useradmin/templates/admin/object_history.html:39 +msgid "" +"This object doesn't have a change history. It probably wasn't added via this " +"admin site." +msgstr "" + +#: useradmin/templates/admin/pagination.html:11 +#: useradmin/templates/admin/search_form.html:13 +msgid "Show all" +msgstr "" + +#: useradmin/templates/admin/pagination.html:12 +#: useradmin/templates/admin/submit_line.html:5 +#: useradmin/templates/admin/submit_line.html:7 +msgid "Save" +msgstr "" + +#: useradmin/templates/admin/related_widget_wrapper.html:10 +#, python-format +msgid "Change selected %(model)s" +msgstr "" + +#: useradmin/templates/admin/related_widget_wrapper.html:17 +#, python-format +msgid "Add another %(model)s" +msgstr "" + +#: useradmin/templates/admin/related_widget_wrapper.html:24 +#, python-format +msgid "Delete selected %(model)s" +msgstr "" + +#: useradmin/templates/admin/search_form.html:6 +#: useradmin/templates/admin/search_form.html:8 +msgid "Search" +msgstr "" + +#: useradmin/templates/admin/search_form.html:13 +#, python-format +msgid "%(counter)s result" +msgid_plural "%(counter)s results" +msgstr[0] "" +msgstr[1] "" + +#: useradmin/templates/admin/search_form.html:13 +#, python-format +msgid "%(full_result_count)s total" +msgstr "" + +#: useradmin/templates/admin/submit_line.html:19 +#: useradmin/templates/admin/submit_line.html:21 +msgid "Save as new" +msgstr "" + +#: useradmin/templates/admin/submit_line.html:25 +#: useradmin/templates/admin/submit_line.html:28 +msgid "Save and add another" +msgstr "" + +#: useradmin/templates/admin/submit_line.html:32 +#: useradmin/templates/admin/submit_line.html:35 +msgid "Save and continue editing" +msgstr "" + +#: useradmin/templates/reversion/change_list.html:8 +#, python-format +msgid "Recover deleted %(name)s" +msgstr "Récupérer des %(name)s supprimés" diff --git a/static/admin/css/changelists.css b/useradmin/static/admin/css/changelists.css similarity index 100% rename from static/admin/css/changelists.css rename to useradmin/static/admin/css/changelists.css diff --git a/templates/admin/actions.html b/useradmin/templates/admin/actions.html similarity index 74% rename from templates/admin/actions.html rename to useradmin/templates/admin/actions.html index 767ba205..7df987d4 100644 --- a/templates/admin/actions.html +++ b/useradmin/templates/admin/actions.html @@ -7,9 +7,9 @@ {{ selection_note }} {% if cl.result_count != cl.result_list|length %} - + + + {% endif %} {% endif %} diff --git a/templates/admin/app_index.html b/useradmin/templates/admin/app_index.html similarity index 100% rename from templates/admin/app_index.html rename to useradmin/templates/admin/app_index.html diff --git a/templates/admin/base_site.html b/useradmin/templates/admin/base_site.html similarity index 100% rename from templates/admin/base_site.html rename to useradmin/templates/admin/base_site.html diff --git a/templates/admin/change_form.html b/useradmin/templates/admin/change_form.html similarity index 100% rename from templates/admin/change_form.html rename to useradmin/templates/admin/change_form.html diff --git a/templates/admin/change_list.html b/useradmin/templates/admin/change_list.html similarity index 100% rename from templates/admin/change_list.html rename to useradmin/templates/admin/change_list.html diff --git a/templates/admin/change_list_results.html b/useradmin/templates/admin/change_list_results.html similarity index 100% rename from templates/admin/change_list_results.html rename to useradmin/templates/admin/change_list_results.html diff --git a/templates/admin/delete_confirmation.html b/useradmin/templates/admin/delete_confirmation.html similarity index 100% rename from templates/admin/delete_confirmation.html rename to useradmin/templates/admin/delete_confirmation.html diff --git a/templates/admin/delete_selected_confirmation.html b/useradmin/templates/admin/delete_selected_confirmation.html similarity index 100% rename from templates/admin/delete_selected_confirmation.html rename to useradmin/templates/admin/delete_selected_confirmation.html diff --git a/templates/admin/edit_inline/stacked.html b/useradmin/templates/admin/edit_inline/stacked.html similarity index 100% rename from templates/admin/edit_inline/stacked.html rename to useradmin/templates/admin/edit_inline/stacked.html diff --git a/templates/admin/edit_inline/tabular.html b/useradmin/templates/admin/edit_inline/tabular.html similarity index 100% rename from templates/admin/edit_inline/tabular.html rename to useradmin/templates/admin/edit_inline/tabular.html diff --git a/templates/admin/includes/fieldset.html b/useradmin/templates/admin/includes/fieldset.html similarity index 100% rename from templates/admin/includes/fieldset.html rename to useradmin/templates/admin/includes/fieldset.html diff --git a/templates/admin/index.html b/useradmin/templates/admin/index.html similarity index 100% rename from templates/admin/index.html rename to useradmin/templates/admin/index.html diff --git a/templates/admin/object_history.html b/useradmin/templates/admin/object_history.html similarity index 100% rename from templates/admin/object_history.html rename to useradmin/templates/admin/object_history.html diff --git a/templates/admin/pagination.html b/useradmin/templates/admin/pagination.html similarity index 100% rename from templates/admin/pagination.html rename to useradmin/templates/admin/pagination.html diff --git a/templates/admin/related_widget_wrapper.html b/useradmin/templates/admin/related_widget_wrapper.html similarity index 100% rename from templates/admin/related_widget_wrapper.html rename to useradmin/templates/admin/related_widget_wrapper.html diff --git a/templates/admin/search_form.html b/useradmin/templates/admin/search_form.html similarity index 100% rename from templates/admin/search_form.html rename to useradmin/templates/admin/search_form.html diff --git a/templates/admin/submit_line.html b/useradmin/templates/admin/submit_line.html similarity index 100% rename from templates/admin/submit_line.html rename to useradmin/templates/admin/submit_line.html diff --git a/templates/reversion/change_list.html b/useradmin/templates/reversion/change_list.html similarity index 100% rename from templates/reversion/change_list.html rename to useradmin/templates/reversion/change_list.html diff --git a/users/admin.py b/users/admin.py index 15cba77f..a92c4004 100644 --- a/users/admin.py +++ b/users/admin.py @@ -32,7 +32,7 @@ from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from reversion.admin import VersionAdmin -from re2o.admin import user_admin_site +from useradmin.admin import user_admin_site from .models import ( User,