django_fhadmin 2.2.2__tar.gz → 2.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/PKG-INFO +2 -5
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/README.rst +1 -4
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/django_fhadmin.egg-info/PKG-INFO +2 -5
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/django_fhadmin.egg-info/SOURCES.txt +1 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/__init__.py +1 -1
- django_fhadmin-2.2.4/fhadmin/apps.py +10 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/static/fhadmin/fhadmin.css +4 -4
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/templates/admin/base_site.html +0 -2
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/templatetags/fhadmin_module_groups.py +5 -4
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/LICENSE +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/MANIFEST.in +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/django_fhadmin.egg-info/dependency_links.txt +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/django_fhadmin.egg-info/requires.txt +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/django_fhadmin.egg-info/top_level.txt +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/locale/de/LC_MESSAGES/django.mo +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/locale/de/LC_MESSAGES/django.po +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/models.py +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/static/fhadmin/fhadmin.js +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/templates/admin/group_list.html +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/templates/admin/index.html +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/fhadmin/templatetags/__init__.py +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/setup.cfg +0 -0
- {django_fhadmin-2.2.2 → django_fhadmin-2.2.4}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django_fhadmin
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Modifies the stock Django-Administration interface to fit our ideas a little bit better.
|
|
5
5
|
Home-page: http://github.com/feinheit/django-fhadmin/
|
|
6
6
|
Author: Matthias Kestenholz
|
|
@@ -59,9 +59,6 @@ Merging apps is possible as follows:
|
|
|
59
59
|
FHADMIN_MERGE = {"accounts": "auth"}
|
|
60
60
|
|
|
61
61
|
This example moves all models from the ``accounts`` app to the ``auth``
|
|
62
|
-
heading.
|
|
63
|
-
page of the Django admin panel and of course the global navigation. Note that
|
|
64
|
-
strange things (or worse) may happen if the user has access to only one or the
|
|
65
|
-
other app.
|
|
62
|
+
heading. Entries where source and target do not exist are ignored.
|
|
66
63
|
|
|
67
64
|
|
|
@@ -40,7 +40,4 @@ Merging apps is possible as follows:
|
|
|
40
40
|
FHADMIN_MERGE = {"accounts": "auth"}
|
|
41
41
|
|
|
42
42
|
This example moves all models from the ``accounts`` app to the ``auth``
|
|
43
|
-
heading.
|
|
44
|
-
page of the Django admin panel and of course the global navigation. Note that
|
|
45
|
-
strange things (or worse) may happen if the user has access to only one or the
|
|
46
|
-
other app.
|
|
43
|
+
heading. Entries where source and target do not exist are ignored.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-fhadmin
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Modifies the stock Django-Administration interface to fit our ideas a little bit better.
|
|
5
5
|
Home-page: http://github.com/feinheit/django-fhadmin/
|
|
6
6
|
Author: Matthias Kestenholz
|
|
@@ -59,9 +59,6 @@ Merging apps is possible as follows:
|
|
|
59
59
|
FHADMIN_MERGE = {"accounts": "auth"}
|
|
60
60
|
|
|
61
61
|
This example moves all models from the ``accounts`` app to the ``auth``
|
|
62
|
-
heading.
|
|
63
|
-
page of the Django admin panel and of course the global navigation. Note that
|
|
64
|
-
strange things (or worse) may happen if the user has access to only one or the
|
|
65
|
-
other app.
|
|
62
|
+
heading. Entries where source and target do not exist are ignored.
|
|
66
63
|
|
|
67
64
|
|
|
@@ -9,6 +9,7 @@ django_fhadmin.egg-info/dependency_links.txt
|
|
|
9
9
|
django_fhadmin.egg-info/requires.txt
|
|
10
10
|
django_fhadmin.egg-info/top_level.txt
|
|
11
11
|
fhadmin/__init__.py
|
|
12
|
+
fhadmin/apps.py
|
|
12
13
|
fhadmin/models.py
|
|
13
14
|
fhadmin/locale/de/LC_MESSAGES/django.mo
|
|
14
15
|
fhadmin/locale/de/LC_MESSAGES/django.po
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
|
|
27
27
|
.qp-active #branding h1::after {
|
|
28
28
|
content: "▲";
|
|
29
|
-
font-size: 0.
|
|
29
|
+
font-size: 0.6em;
|
|
30
30
|
display: inline-block;
|
|
31
31
|
position: relative;
|
|
32
|
-
top: 0
|
|
33
|
-
left: 0.
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0.5em;
|
|
34
34
|
transform: rotate(180deg);
|
|
35
35
|
transition: 0.2s;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.qp-open #branding h1::after {
|
|
39
39
|
transform: none;
|
|
40
|
-
top: -0.
|
|
40
|
+
top: -0.2em;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.groups {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{% extends "admin/base_site.html" %}
|
|
2
2
|
{% load i18n static %}
|
|
3
3
|
|
|
4
|
-
{% block nav-sidebar %}{% endblock %}
|
|
5
|
-
|
|
6
4
|
{% block extrahead %}{{ block.super }}
|
|
7
5
|
<link rel="stylesheet" href="{% static 'fhadmin/fhadmin.css' %}" />
|
|
8
6
|
<script src="{% static 'fhadmin/fhadmin.js' %}"></script>
|
|
@@ -45,10 +45,11 @@ def generate_group_list(admin_site, request, *, only_app_label=None):
|
|
|
45
45
|
|
|
46
46
|
if merge := getattr(settings, "FHADMIN_MERGE", {}):
|
|
47
47
|
for app_label, merge_into in merge.items():
|
|
48
|
-
app_dict
|
|
49
|
-
app_dict[merge_into]["models"]
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
if app_label in app_dict and merge_into in app_dict:
|
|
49
|
+
app_dict[merge_into]["models"] = sorted(
|
|
50
|
+
app_dict[merge_into]["models"] + app_dict.pop(app_label)["models"],
|
|
51
|
+
key=lambda row: row["name"],
|
|
52
|
+
)
|
|
52
53
|
|
|
53
54
|
if only_app_label is not None:
|
|
54
55
|
for key in list(app_dict):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|