kopia lustrzana https://github.com/jedie/PyInventory
commit
0ae5f45530
|
@ -148,6 +148,7 @@ please use YunoHost ;)
|
||||||
|
|
||||||
|
|
||||||
* [**dev**](https://github.com/jedie/PyInventory/compare/v0.19.2...main)
|
* [**dev**](https://github.com/jedie/PyInventory/compare/v0.19.2...main)
|
||||||
|
* Bugfix the "parent" field on location admin page
|
||||||
* tbc
|
* tbc
|
||||||
* [v0.19.2 - 17.08.2023](https://github.com/jedie/PyInventory/compare/v0.19.1...v0.19.2)
|
* [v0.19.2 - 17.08.2023](https://github.com/jedie/PyInventory/compare/v0.19.1...v0.19.2)
|
||||||
* Bugfix packaging and missing "requests" dependencies
|
* Bugfix packaging and missing "requests" dependencies
|
||||||
|
|
|
@ -70,7 +70,6 @@ class LocationModelAdmin(ImportExportMixin, BaseUserAdmin):
|
||||||
),
|
),
|
||||||
(_('Items in this Location'), {'fields': ('items',)}),
|
(_('Items in this Location'), {'fields': ('items',)}),
|
||||||
)
|
)
|
||||||
autocomplete_fields = ('parent',)
|
|
||||||
readonly_fields = ('id', 'create_dt', 'update_dt', 'user', 'item_count', 'items')
|
readonly_fields = ('id', 'create_dt', 'update_dt', 'user', 'item_count', 'items')
|
||||||
list_display_links = ('location',)
|
list_display_links = ('location',)
|
||||||
list_filter = (LimitTreeDepthListFilter,)
|
list_filter = (LimitTreeDepthListFilter,)
|
||||||
|
|
|
@ -26,6 +26,8 @@ INTERNAL_IPS = ('127.0.0.1', '0.0.0.0', 'localhost')
|
||||||
|
|
||||||
ALLOWED_HOSTS = INTERNAL_IPS
|
ALLOWED_HOSTS = INTERNAL_IPS
|
||||||
|
|
||||||
|
SECURE_SSL_REDIRECT = False
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
@ -41,7 +43,7 @@ print(f'Use Database: {DATABASES["default"]["NAME"]!r}', file=__sys.stderr)
|
||||||
# Download map via geotiler in inventory.gpx_tools.gpxpy2map.generate_map
|
# Download map via geotiler in inventory.gpx_tools.gpxpy2map.generate_map
|
||||||
MAP_DOWNLOAD = True
|
MAP_DOWNLOAD = True
|
||||||
|
|
||||||
if __os.environ.get('AUTOLOGIN') == '1':
|
if __os.environ.get('AUTOLOGIN') != '0':
|
||||||
# Auto login for dev. server:
|
# Auto login for dev. server:
|
||||||
MIDDLEWARE = MIDDLEWARE.copy()
|
MIDDLEWARE = MIDDLEWARE.copy()
|
||||||
MIDDLEWARE += ['django_tools.middlewares.local_auto_login.AlwaysLoggedInAsSuperUserMiddleware']
|
MIDDLEWARE += ['django_tools.middlewares.local_auto_login.AlwaysLoggedInAsSuperUserMiddleware']
|
||||||
|
|
Ładowanie…
Reference in New Issue