File: views.py

package info (click to toggle)
python-django-import-export 4.3.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,300 kB
  • sloc: python: 11,650; makefile: 180; sh: 63; javascript: 50
file content (13 lines) | stat: -rw-r--r-- 319 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import warnings

from django.views.generic.list import ListView

from import_export import mixins

from . import models

with warnings.catch_warnings():
    warnings.simplefilter("ignore", category=DeprecationWarning)

    class CategoryExportView(mixins.ExportViewFormMixin, ListView):
        model = models.Category