Database Relation: ManyToMany with extra information?

2016-01-15 Thread Balázs Oroszi
I would create a separate model, like VersionedSoftware, which links to Software with ForeignKey (ManyToOne) and includes the version, as I believe the version is related to the software, not the installation event (like a date of installation would for example). The PC would then reference

Strange behaviour of filter() on related model (RelatedManager) - django 1.9.1

2016-01-12 Thread Balázs Oroszi
Hi, I noticed something strange with filtering related objects. Below is a complete sample demonstrating the problem. This is only for demonstrating the problem. Django version is 1.9.1 Given the model in a "testapp" app: from django.db import models class