from datafilters.filterform import FilterForm
from datafilters.specs import (GenericSpec, DateFieldFilterSpec,
    GreaterThanFilterSpec, ContainsFilterSpec,
    GreaterThanZeroFilterSpec)


class PollsFilterForm(FilterForm):
    has_exact_votes = GenericSpec('choice__votes')
    has_choice_with_votes = GreaterThanZeroFilterSpec('choice__votes')
    pub_date = DateFieldFilterSpec('pub_date', label='Date of publishing')
    has_major_choice = GreaterThanFilterSpec('choice__votes', value=50)
    question_contains = ContainsFilterSpec('question')
    choice_contains = ContainsFilterSpec('choice__choice_text')

@@ -60,21 +60,26 @@
 ers.
+filter
 spec
-s
  import 
 (Gen
@@ -78,22 +78,50 @@
 ort 
-(GenericSpec, 
+FilterSpec%0Afrom datafilters.specs import (
 Date
@@ -278,15 +278,14 @@
 s = 
-Generic
+Filter
 Spec

Use FilterSpec instead of GenericSpec in sample_proj