New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
order_by("hit_count_generic__hits") gives django.db.utils.ProgrammingError #90
Comments
I have the same problem. |
If you're using To fix the problem you have 2 options with |
|
@ansuman13 @webconexus |
will fix it in 1.3.3 / 2.0 |
Just +1ing this issue. Downgrading to 1.3.0 (or any other version for that matter) or downloading a copy and changing the types did not work. |
Same 1.3.0 downgrade didn't work either, will wait for next version. Thanks for the great simple hit counting tool regardless. |
Please release 1.3.3 :) |
to @ajohnclark and @sowinski can you try #98 ? |
Migrates with latest wagtail/django/Postgresql and also functions properly. Thank you! |
to @ansuman13 , @webconexus , @letsgogeeky, @mnsrknp , @MotasemAghbar , @100KG-AFRY , @ajohnclark run pip install -U django-hitcount |
Following from the issue #51,
i am running Python 3.6 with Django 2.2
I have a model Product
class Product(models.Model, HitCountMixin): ...
hit_count_generic = GenericRelation( HitCount, object_id_field='object_pk', related_query_name='hit_count_generic_relation')
when using
Product.objects.order_by('hit_count_generic__hits')
gives ->
... return self.cursor.execute(sql, params) django.db.utils.ProgrammingError: operator does not exist: integer = text LINE 1: ... "hitcount_hit_count" ON ("pharmacy_product"."id" = "hitcoun... ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
How to solve this.
The text was updated successfully, but these errors were encountered: