Commit 5eefc019 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

filter: icontains

parent 62aacf3f
......@@ -4,6 +4,8 @@ from .models import Project
class ProjectFilter(django_filters.FilterSet):
name = django_filters.CharFilter(lookup_expr='icontains')
class Meta:
model = Project
fields = ('name',)
......@@ -41,6 +41,7 @@ class Project(Links, NamedModel, TimeStampedModel):
license = models.ForeignKey(License, on_delete=models.SET_NULL, blank=True, null=True)
homepage = models.URLField(max_length=200, blank=True, null=True)
articles = models.ManyToManyField(Article)
# TODO: release github ↔ robotpkg
def get_absolute_url(self):
return reverse('rainboard:project', kwargs={'slug': self.slug})
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