The problem is on the on_delete=models.SET() lines.

The models.SET() option does not accept field declarations. It should be 
given a method or a queryset that must return an instance of the 
relationship model.

You can read more about how to use SET in the documentation: 
https://docs.djangoproject.com/en/3.0/ref/models/fields/#django.db.models.SET
 


On Thursday, January 9, 2020 at 9:57:08 AM UTC-3, Wesley Montcho wrote:
>
> Hello everyone, 
> I'm a beginner in coding and i choose python,  like my favorite. 
>
>
> I am interresting myself to python frameworks, and technologies, and I'm 
> trying to have knoweldge in web develoment through django; 
>
> But, recently i have some error of migration in my django project that i 
> cannot fix; 
>
> When i try to make migrations i have this error:
>
> ValueError: Cannot serialize: 
> <django.db.models.query_utils.DeferredAttribute object at 
> 0x000001885B094160>
> There are some values Django cannot serialize into migration files.
> For more, see 
> https://docs.djangoproject.com/en/2.2/topics/migrations/#migration-serializing
>
>
>
> please i want some person to help me about this, i have somme challenge 
> and this error make me late; 
>
> Thanks
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c76cdcf4-a507-4b84-b3d5-2e89f544ba61%40googlegroups.com.

Reply via email to