mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 05:11:31 -05:00
version script updates and system page fix
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
{% endblocktrans %}
|
||||
|
||||
<h3 class="mt-5">{% trans 'System Information' %}</h3>
|
||||
{% if version_if %}
|
||||
{% if version_info %}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="list-group">
|
||||
|
||||
@@ -7,7 +7,7 @@ from rest_framework.schemas import get_schema_view
|
||||
|
||||
from cookbook.helper import dal
|
||||
from recipes.settings import DEBUG, PLUGINS
|
||||
from version_info import TANDOOR_VERSION
|
||||
from cookbook.version_info import TANDOOR_VERSION
|
||||
|
||||
from .models import (Automation, Comment, CustomFilter, Food, InviteLink, Keyword, MealPlan, Recipe,
|
||||
RecipeBook, RecipeBookEntry, RecipeImport, ShoppingList, Step, Storage,
|
||||
|
||||
3
cookbook/version_info.py
Normal file
3
cookbook/version_info.py
Normal file
@@ -0,0 +1,3 @@
|
||||
TANDOOR_VERSION = ""
|
||||
TANDOOR_REF = ""
|
||||
VERSION_INFO = []
|
||||
@@ -1,7 +1,5 @@
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import traceback
|
||||
from datetime import datetime
|
||||
from uuid import UUID
|
||||
|
||||
@@ -24,10 +22,9 @@ from cookbook.helper.permission_helper import group_required, has_group_permissi
|
||||
from cookbook.models import (Comment, CookLog, InviteLink, SearchFields, SearchPreference, ShareLink,
|
||||
Space, ViewLog, UserSpace)
|
||||
from cookbook.tables import (CookLogTable, ViewLogTable)
|
||||
from cookbook.version_info import VERSION_INFO
|
||||
from recipes.settings import PLUGINS
|
||||
|
||||
from version_info import VERSION_INFO
|
||||
|
||||
|
||||
def index(request):
|
||||
with scopes_disabled():
|
||||
|
||||
Reference in New Issue
Block a user