Yes, I found it.
Thank you for replying.
Vào lúc 11:43:22 UTC+7 ngày Thứ Hai, 6 tháng 12, 2021,
aashishk...@gmail.com đã viết:
> ManyToManyField doesn’t need on_delete attribute
>
> Remove on_delete attribute
>
> On Mon, 6 Dec 2021 at 9:05 AM, Thomas Lockhart
> wrote:
>
>> Please use polite
ManyToManyField doesn’t need on_delete attribute
Remove on_delete attribute
On Mon, 6 Dec 2021 at 9:05 AM, Thomas Lockhart
wrote:
> Please use polite language. Thank you.
>
> - Tom
>
> On Dec 5, 2021, at 5:21 PM, Anurag Agarwal
> wrote:
>
> Why are you fucking passing the args
> On_delete in
Please use polite language. Thank you.
- Tom
> On Dec 5, 2021, at 5:21 PM, Anurag Agarwal wrote:
>
> Why are you fucking passing the args
> On_delete in manytomany . Class
>
>promotion = models.ManyToManyField(Promotions, on_delete=models.CASCADE)
>
>
> On Sun, Dec 5, 2021, 21:09 Samuel
Oh,
Thank you very much, I realized my mistake.
Vào lúc 08:23:47 UTC+7 ngày Thứ Hai, 6 tháng 12, 2021, anurag@gmail.com
đã viết:
> Why are you fucking passing the args
> On_delete in manytomany . Class
>
> promotion = models.ManyToManyField(Promotions, on_delete=models.CASCADE)
>
>
>
Why are you fucking passing the args
On_delete in manytomany . Class
promotion = models.ManyToManyField(Promotions, on_delete=models.CASCADE)
On Sun, Dec 5, 2021, 21:09 Samuel Nogueira wrote:
> Please, can you take some prints of your models?
>
> Em dom., 5 de dez. de 2021 12:34, Khánh
from ctypes import DEFAULT_MODE
from django.db import models
from django.db.models.deletion import CASCADE, PROTECT
from django.db.models.expressions import Col
from django.db.models.fields import PositiveSmallIntegerField
from django.utils.translation import pgettext_lazy
class
Please, can you take some prints of your models?
Em dom., 5 de dez. de 2021 12:34, Khánh Hoàng
escreveu:
> Hi everyone, I am new to programming, more than 4 months, I had an issue
> when making migrations for my apps.
>
> I run :" python manage.py makemigrations " and I got a error.
> It
Change on delete to on_delete in your model
On Sun, Dec 5, 2021, 9:34 PM Khánh Hoàng
wrote:
> Hi everyone, I am new to programming, more than 4 months, I had an issue
> when making migrations for my apps.
>
> I run :" python manage.py makemigrations " and I got a error.
> It said:
Hi everyone, I am new to programming, more than 4 months, I had an issue
when making migrations for my apps.
I run :" python manage.py makemigrations " and I got a error.
It said: TypeError: __init__() got an unexpected keyword argument 'on
delete'
I'm Using Django 3.2.9
Can someone
9 matches
Mail list logo