Answer the question
In order to leave comments, you need to log in
How to display a complex data model in django?
I have a model:
class librarys(models.Model):
language = models.ForeignKey(languages, on_delete = models.CASCADE, verbose_name='Язык')
class directorys(models.Model):
language = models.ForeignKey(languages, on_delete = models.CASCADE, verbose_name='Язык')
description = models.CharField('описание', max_length=1000, db_index=True)
class file_directory(models.Model):
directory = models.ForeignKey(directorys, on_delete = models.CASCADE, verbose_name='Католог')
description = models.CharField('описание', max_length=1000, db_index=True)
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