Commit 4befd60a authored by Alexandre's avatar Alexandre

feature: date not mandatory #27

parent bb3591cc
......@@ -50,4 +50,4 @@ class ActionViewSet(LDPViewSet):
model=Action
def get_queryset(self, *args, **kwargs):
return super().get_queryset(*args, **kwargs).filter(date__gte=date.today())
return super().get_queryset(*args, **kwargs).exclude(date__lt=date.today())
......@@ -72,7 +72,7 @@
<sib-widget name="rfm-display-date">
<template>
<span>${moment(value).format("DD MMMM")}</span>
<span>${value ? moment(value).format("DD MMMM") : ""}</span>
</template>
</sib-widget>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment