Have you created a new model field ? Then put on that null= "True"
Example :: Name = Model.CharField(max_legth,* null= "True"*) On Fri, Jun 4, 2021 at 7:59 PM OSA-33 SyCS Atik Rangnekar < [email protected]> wrote: > It think the problem is there is null values/bytes > > On Fri, 4 Jun, 2021, 6:28 pm Ankita Sharma, <[email protected]> > wrote: > >> Hello All >> Hope all are doing great. >> The issue is as follows: >> I have already existing 2 MSSql databases from which I have migrated >> required tables into models.py >> Now I am not able to do makemigrations on one of them. Below is the error: >> >> from records.models.transactions_east import AdgSrtransactionsEast >> ValueError: source code string cannot contain null bytes >> >> Please help me here >> >> Thanks in advance >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/0528c4a7-36a2-4762-a576-db114c7d445cn%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/0528c4a7-36a2-4762-a576-db114c7d445cn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CABOD_T69227mDF0abmkiTR_EiEuGTTQ%3D6LhQYoP3yyDOARHsyA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CABOD_T69227mDF0abmkiTR_EiEuGTTQ%3D6LhQYoP3yyDOARHsyA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAH2jLM%2BcX8Cfp0ck%3DLXkDf4LWuj0GrK%2BuBodPSgCycvYsVkbCA%40mail.gmail.com.

