Answer the question
In order to leave comments, you need to log in
How to implement a model of links to external resources in the Django admin panel?
There are two models:
class Link(models.Model):
man = models.ForeignKey('Man', related_name='links', on_delete=models.CASCADE)
resource = models.CharField(max_length=255)
link = models.CharField(max_length=255)
class Man(models.Model):
name = models.CharField(max_length=100)
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