Clean up after remove reminders

This commit is contained in:
sosokker 2023-11-03 23:29:54 +07:00
parent 02236f9873
commit fcf674f3f6
3 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,7 @@ class TaskCreateSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Task model = Task
# fields = '__all__' # fields = '__all__'
exclude = ('tags', 'reminders') exclude = ('tags',)
def create(self, validated_data): def create(self, validated_data):
# Create a new task with validated data # Create a new task with validated data

View File

@ -2,7 +2,7 @@ from django.urls import reverse
from rest_framework import status from rest_framework import status
from rest_framework.test import APITestCase from rest_framework.test import APITestCase
from .utils import create_test_user, login_user from tasks.tests.utils import create_test_user, login_user
from ..models import Task from ..models import Task
class TaskCreateViewTests(APITestCase): class TaskCreateViewTests(APITestCase):

View File

@ -34,7 +34,6 @@ def create_task_json(user, **kwargs):
"difficulty": 1, "difficulty": 1,
"attribute": "str", "attribute": "str",
"challenge": False, "challenge": False,
"reminders": False,
"fromSystem": False, "fromSystem": False,
"creation_date": None, "creation_date": None,
"last_update": None, "last_update": None,
@ -57,7 +56,6 @@ def create_test_task(user, **kwargs):
'difficulty': 1, 'difficulty': 1,
'attribute': 'str', 'attribute': 'str',
'challenge': False, 'challenge': False,
'reminders': False,
'fromSystem': False, 'fromSystem': False,
} }