File: external_django_tables2_noerror_meta_class.py

package info (click to toggle)
pylint-django 2.0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: python: 1,807; sh: 13; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Check that Meta class definitions for django_tables2 classes
# don't produce old-style-class warnings, see
# https://github.com/PyCQA/pylint-django/issues/56

# pylint: disable=missing-docstring,too-few-public-methods

from django.db import models
import django_tables2 as tables


class SimpleModel(models.Model):
    name = models.CharField()


class SimpleTable(tables.Table):
    class Meta:
        model = SimpleModel