working on migrations

This commit is contained in:
vabene1111
2021-06-30 15:14:37 +02:00
parent 5c0bdce37d
commit 33b840dbbf
3 changed files with 5 additions and 10 deletions

View File

@@ -27,8 +27,7 @@ def set_default_search_vector(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
('cookbook', '0126_alter_userpreference_theme'),
('cookbook', '0140_userpreference_created_at'),
]
operations = [
migrations.AddField(

View File

@@ -13,7 +13,7 @@ def create_searchfields(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('cookbook', '0127_build_full_text_index'),
('cookbook', '0141_build_full_text_index'),
]
operations = [

View File

@@ -3,7 +3,6 @@ import re
from datetime import datetime
from uuid import UUID
from allauth.account.forms import SignupForm
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import update_session_auth_hash
@@ -12,10 +11,10 @@ from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth.models import Group
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError
from django.db.models import Avg, Q, Sum
from django.http import HttpResponseRedirect, JsonResponse
from django.db.models import Avg, Q
from django.db.models import Sum
from django.http import HttpResponseRedirect
from django.http import JsonResponse
from django.shortcuts import get_object_or_404, render, redirect
from django.urls import reverse, reverse_lazy
from django.utils import timezone
@@ -27,11 +26,8 @@ from rest_framework.authtoken.models import Token
from cookbook.filters import RecipeFilter
from cookbook.forms import (CommentForm, Recipe, User,
UserCreateForm, UserNameForm, UserPreference,
UserPreferenceForm, SpaceJoinForm, SpaceCreateForm,
SearchPreferenceForm, AllAuthSignupForm,
UserPreferenceForm, SpaceJoinForm, SpaceCreateForm, AllAuthSignupForm, SearchPreferenceForm)
UserPreferenceForm, SpaceJoinForm, SpaceCreateForm, SearchPreferenceForm)
from cookbook.helper.ingredient_parser import parse
from cookbook.helper.permission_helper import group_required, share_link_valid, has_group_permission
from cookbook.models import (Comment, CookLog, InviteLink, MealPlan,
RecipeBook, RecipeBookEntry, ViewLog, ShoppingList, Space, Keyword, RecipeImport, Unit,