I want to select rows in Django which have multiple rows with duplicated values.
For example I have a model which looks like this
class User:
first_name = models.CharField(...)
last_name = models.CharField(...)
...
and a database looking like this
first_name | last_name | ...
---------- | --------- | ...
Paul | Adams | ...
John | Smith | ...
Tom | Mueller | ...
John | Smith | ...
John | Adams | ...
Paul | Adams | ...
and I want to get the first_name
and last_name
values which exist multiple times in the database. The other values must not be equal of the rows. In this example I want to get "John Smith" and "Paul Adams".