i want to create a complex queryset , after many time witout sucess :( i ask your help,
is my models:
class Commit(odels.Model):
date = models.DateTimeField(auto_now_add=True)
created = models.BooleanField(default=False)
creator = models.ForeignKey(
get_user_model(),
on_delete=models.SET_NULL,
null=True,
blank=True,
related_name="%(class)s_creator"
)
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
object_id = models.PositiveIntegerField()
content_object = GenericForeignKey('content_type', 'object_id')
uuid = models.CharField(max_length=200)
updated_fields = models.TextField(null=True, blank=True)
i want to count how many "commit" user have, remove user if user as no "commit" and commit lower than 7 days , sort by upper, and remove my account to this filter , how can to this ? thx