Skip to content

Commit

Permalink
Merge pull request #43 from Ivan-Feofanov/master
Browse files Browse the repository at this point in the history
refactor: remove RemovedInDjango40Warning warning message
  • Loading branch information
escaped authored Mar 21, 2021
2 parents 20b5288 + a9410a6 commit 718423b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
- [@sobolevn](https://github.com/sobolevn)
- [@tony](https://github.com/tony)
- [@tripliks](https://github.com/tripliks)
- [@Ivan-Feofanov](https://github.com/Ivan-Feofanov)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Since `unpublish` depends on `article.status` we must use `get_inline_actions` t

```python
from django.contrib import admin, messages
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class ArticleInline(InlineActionsMixin,
Expand Down
2 changes: 1 addition & 1 deletion inline_actions/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.contrib import messages
from django.shortcuts import redirect
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class ViewAction:
Expand Down
2 changes: 1 addition & 1 deletion inline_actions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.urls import reverse
from django.utils.safestring import mark_safe
from django.utils.text import capfirst
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class InlineActionException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion test_proj/blog/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib import admin, messages
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from inline_actions.actions import DefaultActionsMixin, ViewAction
from inline_actions.admin import InlineActionsMixin, InlineActionsModelAdminMixin
Expand Down
2 changes: 1 addition & 1 deletion test_proj/blog/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class Author(models.Model):
Expand Down
4 changes: 2 additions & 2 deletions test_proj/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.conf.urls import url
from django.contrib import admin
from django.urls import path

urlpatterns = [
url(r'^admin/', admin.site.urls),
path('admin/', admin.site.urls),
]

0 comments on commit 718423b

Please sign in to comment.