4👍
✅
As one tag can have many entries and vice versa, you will want to add a ManyToMany field.
0👍
I would create another class in the Model to support this.
class tagEntryJoins(models.Model):
tag = models.ForeignKey('Tag')
entry = models.ForeignKey('entry')
👤Dean
- [Django]-Django 3 – Making Model's FK Dropdown Display Current User's Data Only
- [Django]-How to manage version controlled Django migrations as a team?
- [Django]-Django filter from two fields with single input
- [Django]-Schemamigration/refactor model using south
Source:stackexchange.com