Skip to content

Commit

Permalink
feature: removing flow start with empty contact_data and ordering by …
Browse files Browse the repository at this point in the history
…created_on (#307)
  • Loading branch information
AlanJaeger authored Oct 30, 2023
1 parent 3f5b0fb commit c0daa72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chats/apps/api/v1/projects/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ def retrieve_flow_warning(self, request, *args, **kwargs):
def list_flows_start(self, request, *args, **kwargs):
project = self.get_object()
permission = project.permissions.get(user=request.user)
flow_starts_query = project.flowstarts.all().order_by("created_on")
flow_starts_query = project.flowstarts.exclude(contact_data={}).order_by(
"-created_on"
)
filtro = FlowStartFilter(request.GET, queryset=flow_starts_query)

queryset = filtro.qs
Expand Down

0 comments on commit c0daa72

Please sign in to comment.