1👍
✅
Ofcourse you can use it.
class User(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL)
verse = models.ForeignKey(Verse)
To access votes value you simply have to write:
User.verse.votes
- Which is better approach for managing photo numbers in a Django application?
- Webpack bundle does not show css
- Sending a list of checkboxes via Ajax to Django
- Django: Formset Submit Button not working
- How to pass a username from a Django login form?
Source:stackexchange.com