Когда я делаю миграции у меня не добавляются некоторые поля
Вот моя модель
class Post(models.Model):
author = models.ForeignKey(Profile, on_delete=models.CASCADE, related_name='post'),
liked = models.ManyToManyField(Profile, default=None, related_name='likes'),
disliked = models.ManyToManyField(Profile, default=None, related_name='dislikes'),
text = models.TextField()
image = models.ImageField(
upload_to='post_image',
validators=[FileExtensionValidator(['png', 'jpg', 'jpeg'])],
blank=True
)
video = models.FileField(
upload_to='post_video/',
validators=[FileExtensionValidator(['mp4'])],
blank=True
)
updated_date = models.DateTimeField(auto_now=True)
created_date = models.DateTimeField(auto_now_add=True)
Когда я делаю makemigrations он не добавляет поля author, liked, disliked и в итоге у меня нету этих полей. Как это пофиксить? Буду рад любой помощи.
migrations.CreateModel(
name='Post',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField()),
('image', models.ImageField(blank=True, upload_to='post_image', validators=[django.core.validators.FileExtensionValidator(['png', 'jpg', 'jpeg'])])),
('video', models.FileField(blank=True, upload_to='post_video/', validators=[django.core.validators.FileExtensionValidator(['mp4'])])),
('updated_date', models.DateTimeField(auto_now=True)),
('created_date', models.DateTimeField(auto_now_add=True)),
],
),