Passed
Push — master ( 0d2088...c620fc )
by Swen
55s
created

  A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 10
wmc 0
1 1
from django.db import models
0 ignored issues
show
Configuration introduced by
The import django.db could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
2
3 1
from .manager import PostgresManager
4
5
6 1
class PostgresModel(models.Model):
0 ignored issues
show
Coding Style introduced by
This class has no __init__ method.
Loading history...
7
    """Base class for for taking advantage of PostgreSQL specific features."""
8
9 1
    class Meta:
10 1
        abstract = True
11 1
        base_manager_name = 'objects'
12
13
    objects = PostgresManager()
14