Bonjour, 

Je veux creer un model en me servant de la classe Question comme un champ 
> du model
> Je ne sais pas comment m'y prendre
>

As-tu envisagé de créer un modèle 'Question', et de mettre une clé 
étrangère de ton modèle vers 'Question' ?
Autrement, il faudrait que tu implémentes un champ de modèle personnalisé 
en héritant de la classe 'django.db.models.Field 
<https://docs.djangoproject.com/en/2.0/ref/models/fields/#django.db.models.Field>'
 
comme s'est expliqué dans cette section 
<https://docs.djangoproject.com/en/2.0/howto/custom-model-fields/> de la 
documentation. N'y ayant jamais eu recours moi-même, je ne peux 
malheureusement pas t'éclairer à ce sujet.

Quentin
 

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe432456-c5bf-4882-be7a-a3eb421724fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to