ba da gudummawa.comments
Babban matsalar da ke da alaฦa da sharhi ita ce za su iya zama tushen ruษani da takaici ga maziyartan rukunin yanar gizon. Sharhi na iya zama da wahala a sarrafa, kuma yana iya zama da wahala a lura da waษanne sharhi ne ke aiki da kuma waษanda aka goge.
,django-templates,django-views I have a model with comments. I want to display the comments in reverse order (most recent first). I tried this: {% for comment in article.comments.all %} {{ comment }} {% endfor %} But it doesn't work... Django - How to get all objects from a model that are not related to another model? django,django-models,many-to-many I have two models: class Team(models.Model): name = models.CharField(max_length=100) class Player(models.Model): name = models.CharField(max_length=100) teams = models.ManyToManyField('Team') So every player can be... Django - How do you create a ManyToMany relationship between two existing tables? django,django-models,many-to-many My Django app has an existing database with 2 tables that need to be connected via a ManyToMany relationship: class ProductType(models.Model): product_type_id = models.AutoField(primary_key=True) product_type...
Yadda ake ฦirฦirar alaฦar ManyToMany tsakanin tebur biyu da ake da su a Django? django,django-models,mai yawa-zuwa-yawan My Django app yana da bayanan data kasance tare da teburi 2 waษanda ke buฦatar haษa su ta hanyar alaฦar ManyToMany: class ProductType(models.Model): samfur_type_id = model.AutoField(primary_key=Gaskiya) samfur_type โฆ
Django - Ta yaya kuke ฦirฦirar alaฦar ManyToMany tsakanin tebur biyu da ake da su? django,django-models,mai yawa-zuwa-yawan My Django app yana da bayanan data kasance tare da teburi 2 waษanda ke buฦatar haษa su ta hanyar alaฦar ManyToMany: class ProductType(models.Model): samfur_type_id = model.AutoField(primary_key=Gaskiya) samfur_type โฆ
Yi oda da adadin sharhi
Babu takamaiman amsa ga wannan tambayar saboda ya dogara da takamaiman bukatun aikin ku. Koyaya, hanya ษaya ita ce yin odar sharhi ta adadin maganganun da suke da shi.
odar QuerySet
An ฦayyade odar QuerySet a Django ta tsarin da aka ฦara abubuwan cikin QuerySet.