Skip to content

Commit

Permalink
chore: import CloneModel from models module (#665)
Browse files Browse the repository at this point in the history
* chore: import CloneModel from models module

* Delete lint.yml

* Update .pre-commit-config.yaml

* Update __init__.py

* Update README.md
  • Loading branch information
jackton1 authored Oct 28, 2022
1 parent 33b9ac1 commit 5a468ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 43 deletions.
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

0 comments on commit 5a468ff

Please sign in to comment.