معرفی شرکت ها


django-daterange-filterspec-2.0.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A DateRange Filter for Django Admin Changelists
ویژگی مقدار
سیستم عامل -
نام فایل django-daterange-filterspec-2.0.4
نام django-daterange-filterspec
نسخه کتابخانه 2.0.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Stuart MacKay
ایمیل نویسنده smackay@flagstonesoftware.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/django-daterange-filterspec/
مجوز License :: OSI Approved :: BSD License
Django DateRange Filterspec =========================== Adds a form with AdminDateWidgets that can be used to select a range of dates for filtering the list of records displayed in an admin Changelist. .. image:: https://raw.githubusercontent.com/StuartMacKay/django-daterange-filterspec/master/docs/images/screenshot.png Quick start ----------- Install the package from PyPI:: pip install django-daterange-filterspec The package includes a template, which loads Django's calendar widget and date shortcuts. Add the package to the INSTALLED_APPS setting so the template loader can find it:: INSTALLED_APPS = ( ... "daterange.apps.DateRangeFilterConfig", ... ) In your ModelAdmin, set the template used for the changelist to the one provided by the package. Then, for each field you want to filter on create a tuple with the name of the field and the ``DateRangeFilter`` filter class:: from django.contrib import admin from daterange.filters import DateRangeFilter from .models import Article @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): list_display = ["title", "slug", "published"] list_filter = [("published", DateRangeFilter)] ordering = ["-created"] change_list_template = "admin/daterange/change_list.html" If you're already using a customised changelist template, you can add the necessary css and javascript files to the Media class for the ModelAdmin:: @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): ... class Media: css = {"all": ("admin/css/forms.css", "css/admin/daterange.css")} js = ("admin/js/calendar.js", "js/admin/DateRangeShortcuts.js") Now, go forth and filter! Project ------- If you check out the project from the repository there is a fully functioning Django site that you can use to see the filter in action.


نیازمندی

مقدار نام
>=2.2 Django


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl django-daterange-filterspec-2.0.4:

    pip install django-daterange-filterspec-2.0.4.whl


نصب پکیج tar.gz django-daterange-filterspec-2.0.4:

    pip install django-daterange-filterspec-2.0.4.tar.gz