Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: import CloneModel from models module #665

Merged
merged 6 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .github/workflows/lint.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ repos:
hooks:
- id: black
language_version: python3

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
hooks:
- id: yamllint
args: ["-d", "relaxed"]

- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class MyModel(models.Model):

```python
from django.db import models
from model_clone import CloneModel
from model_clone.models import CloneModel

class MyModel(CloneModel):
title = models.CharField(max_length=200)
Expand All @@ -79,7 +79,7 @@ class MyModel(CloneModel):
```python
from django.db import models
from django.utils.translation import gettext_lazy as _
from model_clone import CloneModel
from model_clone.models import CloneModel

class TestModel(CloneModel):
title = models.CharField(max_length=200)
Expand Down