Browse Source

Update documentation

Denis K 8 years ago
parent
commit
4a1877d985
2 changed files with 27 additions and 0 deletions
  1. 1 0
      docs/configuration.rst
  2. 26 0
      docs/filters.rst

+ 1 - 0
docs/configuration.rst

@@ -10,3 +10,4 @@ Contents:
    config_file
    autocomplete
    compact_inline
+   filters

+ 26 - 0
docs/filters.rst

@@ -0,0 +1,26 @@
+=======
+Filters
+=======
+
+RelatedFieldAjaxListFilter
+--------------------------
+
+See :doc:`autocomplete` documentation for details.
+
+django-admin-rangefilter
+------------------------
+
+In order to fix compatibility issues with ``django-admin-rangefilter`` package you should use JET's admin filter class
+``jet.filters.DateRangeFilter`` instead of ``rangefilter.filter.DateRangeFilter``.
+
+.. code:: python
+
+    #from rangefilter.filter import DateRangeFilter
+    from jet.filters import DateRangeFilter
+
+
+    class MyUserAdmin(UserAdmin):
+        ...
+        list_filter = (
+            ('date_joined', DateRangeFilter),
+        )