Answer the question
In order to leave comments, you need to log in
How to display model data?
There are two models
class TypeSkills(models.Model):
type = models.CharField('Тип', max_length=100)
class Skill(models.Model):
type = models.ForeignKey(TypeSkills, verbose_name='Тип')
name = models.CharField('Навык', max_length=100)
types = TypeSkills.objects.all()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question