django-subquery Questions

3

Solved

Please help me I've been stuck on this for way too long :( What I want to do: I have these two models: class Specialization(models.Model): name = models.CharField("name", max_length=64) class ...

3

Solved

An simplified example of my model structure would be class Corporation(models.Model): ... class Division(models.Model): corporation = models.ForeignKey(Corporation) class Department(models.Mod...
Waikiki asked 25/6, 2018 at 14:11

7

Solved

This is a bleeding-edge feature that I'm currently skewered upon and quickly bleeding out. I want to annotate a subquery-aggregate onto an existing queryset. Doing this before 1.11 either meant cus...
Ardolino asked 1/3, 2017 at 23:18

2

I'm having problems using annotate() with OuterRef in Django 1.11 subqueries. Example models: class A(models.Model): name = models.CharField(max_length=50) class B(models.Model): a = models.Fo...
Teacart asked 3/11, 2017 at 11:43

1

I have recently upgraded to django 1.11 and I want to use the newly released, Subquery exrpession feature. There are two models as follows class Project(models.Model): title = models.CharField(_...
Cloistered asked 6/6, 2018 at 14:22
1

© 2022 - 2024 — McMap. All rights reserved.