django3.1,we can use from django.db.models.expressions import Random,but after 3.2,Random class has been abandon
It’s now a function and not an expression.
Documented in the Django 3.2 Release Notes
Also see Random
django3.1,we can use from django.db.models.expressions import Random,but after 3.2,Random class has been abandon
It’s now a function and not an expression.
Documented in the Django 3.2 Release Notes
Also see Random