Posts by Sthephf Swaskophf • 1 point
1 post
-
-2
votes1
answer23
viewsQ: show value instead of foreign key DJANGO API
Model from django.db import models from django.contrib.auth.models import User user_agent = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): return self.name VIEWS from…