About 6,390,000 results
Open links in new tab
  1. How do i cast char to integer while querying in django ORM?

    Jan 23, 2015 · How do i cast char to integer while querying in django ORM? Asked 10 years, 11 months ago Modified 11 months ago Viewed 50k times

  2. python 3.x - Casting inside a django query - Stack Overflow

    Oct 11, 2021 · Player.objects.aggregate(Avg('score')) This will not work because "score" is a CharField and needs to be cast to a float first. How do I go about typecasting it on the fly? …

  3. django - Cannot cast type integer to uuid - Stack Overflow

    Cannot cast type integer to uuid Asked 5 years, 2 months ago Modified 5 years, 2 months ago Viewed 22k times

  4. Django: ordering numerical value with order_by - Stack Overflow

    from django.db import models from django.db.models.functions import Cast class Address(models.Model): street_number = models.CharField() class Meta: ordering = [ …

  5. 'ProgrammingError: cannot cast type bigint to uuid' in Django

    Feb 28, 2024 · 'ProgrammingError: cannot cast type bigint to uuid' in Django Asked 1 year, 10 months ago Modified 1 year, 10 months ago Viewed 620 times

  6. Django ORM - Cast and filter a queryset - Stack Overflow

    Dec 10, 2019 · 2 I would like to cast a related column to integer and then filter a queryset, but I can not get it to work. These are my models

  7. python - Casting objects in django model - Stack Overflow

    Apr 12, 2013 · If I understood your concept of "cast" it will not work in the way you described. However, to get model inheritance to work you need to use abstract models (see docs) class …

  8. Django error: cannot cast type date to time without time zone

    May 2, 2021 · I needed to Alter columns from type "date" to make them "timestamp with time zone", because my Django models configuration wanted to be them like this createdAt = …

  9. Django: Cast CharField to Integer if possible - Stack Overflow

    Django: Cast CharField to Integer if possible Asked 5 years, 9 months ago Modified 5 years, 9 months ago Viewed 2k times

  10. django.db.utils.ProgrammingError: cannot cast type uuid to integer

    django.db.utils.ProgrammingError: cannot cast type uuid to integer Asked 5 years, 8 months ago Modified 1 year, 5 months ago Viewed 16k times