Skip to content

Commit

Permalink
Merge pull request #39 from coredumperror/master
Browse files Browse the repository at this point in the history
Fixed 'Read on' link in Introduction docs
  • Loading branch information
rsinger86 committed Feb 15, 2020
2 parents fd1b0b4 + 208cc65 commit 01593c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/index.md
Expand Up @@ -30,13 +30,13 @@ Instead of overriding `save` and `__init___` in a clunky way that hurts readabil

```python
# same class and field declarations as above ...

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._orig_contents = self.contents
self._orig_status = self.status


def save(self, *args, **kwargs):
if self.pk is not None and self.contents != self._orig_contents):
self.updated_at = timezone.now()
Expand All @@ -58,7 +58,7 @@ Instead of overriding `save` and `__init___` in a clunky way that hurts readabil
pip install django-lifecycle
```

## Getting Started
## Getting Started

Either extend the provided abstract base model class:

Expand Down Expand Up @@ -86,4 +86,4 @@ class YourModel(LifecycleModelMixin, models.Model):

If you are using **Django 1.8 or below** and want to extend the base model, you also have to add `django_lifecycle` to `INSTALLED_APPS`.

[Read on](/examples/) to see more examples of how to use lifecycle hooks.
[Read on](examples.md) to see more examples of how to use lifecycle hooks.

0 comments on commit 01593c2

Please sign in to comment.