модель
Employee:
.....
class Employee(models.Model):
full_name = models.CharField(max_length=60, verbose_name="Имя Фамилия")
position = models.CharField(max_length=40, verbose_name="Должность")
text = models.TextField(verbose_name="Об сотруднике")
status = models.BooleanField(verbose_name="Статус", default=1)
.....
модель
social_link:.....
class social_link(models.Model):
employee = models.ForeignKey(Employee)
url = models.CharField(max_length=100, verbose_name="URL ")
.....
пробую вытаскивать
employees = Employee.objects.get(id=1)
print(employees.social_link)
Но выскакивает ошибка 'Employee' object has no attribute 'social_link'.