[fix] Fixes after refactoring
This commit is contained in:
@@ -8,7 +8,11 @@ class Vacancy(models.Model):
|
||||
name = models.CharField(
|
||||
max_length=255,
|
||||
)
|
||||
age_restriction = models.DateField(
|
||||
start_date = models.DateField(
|
||||
blank=True,
|
||||
null=True,
|
||||
)
|
||||
end_date = models.DateField(
|
||||
blank=True,
|
||||
null=True,
|
||||
)
|
||||
@@ -72,6 +76,7 @@ class Team(models.Model):
|
||||
author = models.ForeignKey(
|
||||
User,
|
||||
on_delete=models.CASCADE,
|
||||
related_name="teams"
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
|
||||
@@ -4,7 +4,7 @@ from rest_framework.response import Response
|
||||
from rest_framework.views import APIView
|
||||
from teams.models import Team
|
||||
|
||||
from .serializers import TeamSerializer
|
||||
from api.teams.serializers import TeamSerializer
|
||||
|
||||
|
||||
class AddUserToTeam(APIView):
|
||||
|
||||
@@ -156,6 +156,8 @@ REST_FRAMEWORK = {
|
||||
|
||||
APPEND_SLASH = False
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
|
||||
if DEBUG and not (TESTING or MIGRATING):
|
||||
INSTALLED_APPS.append("debug_toolbar")
|
||||
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# Generated by Django 4.2.11 on 2024-03-31 19:06
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('notifications', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='notification',
|
||||
name='content',
|
||||
field=models.TextField(verbose_name='содержание'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user