You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using query in below:-
report_schedules = await ReportHistory.objects.filter(report_schedule_uuid__is_enable=True).offset(1).limit(1).all()
showing error :-
"message": "function min(uuid) does not exist\nHINT: No function matches the given name and argument types. You might need to add explicit type casts.",
"status_code": 400,
Anyone who can help me figure out this issue, need help for this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Track.object.select_related("album").filter(album__name="Malibu").offset(1).limit(1).all()
when I am having other models which have relationship of types shown in docs for above query my query is not working.
Report Schedule:-
class ReportSchedule(BaseOrmar):
Report History:-
class ReportHistory(BaseOrmar):
class Meta(BaseMeta):
"""Metadata of report_history table"""
tablename = "report_history"
I am using query in below:-
report_schedules = await ReportHistory.objects.filter(report_schedule_uuid__is_enable=True).offset(1).limit(1).all()
showing error :-
"message": "function min(uuid) does not exist\nHINT: No function matches the given name and argument types. You might need to add explicit type casts.",
"status_code": 400,
Anyone who can help me figure out this issue, need help for this.
Beta Was this translation helpful? Give feedback.
All reactions