Skip to content

Commit

Permalink
Merge pull request #5 from vndly-oss/VNDLY-41414-middleware-style-upd…
Browse files Browse the repository at this point in the history
…ate-predjango4

VNDLY-41414: Middleware will start to require 1 positional argument.
  • Loading branch information
benstafford authored Feb 20, 2024
2 parents 36943b6 + 3c65b9d commit 1d952d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tenant_schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
default_app_config = 'tenant_schemas.apps.TenantSchemaConfig'

__version__ = "v1.9.0-vndly-0.0.3"
__version__ = "v1.9.0-vndly-0.0.4"
4 changes: 2 additions & 2 deletions tenant_schemas/test/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class TenantRequestFactory(RequestFactory):
tm = TenantMiddleware()
tm = TenantMiddleware(lambda r:r)

def __init__(self, tenant, **defaults):
super(TenantRequestFactory, self).__init__(**defaults)
Expand Down Expand Up @@ -42,7 +42,7 @@ def delete(self, path, data='', content_type='application/octet-stream',


class TenantClient(Client):
tm = TenantMiddleware()
tm = TenantMiddleware(lambda r:r)

def __init__(self, tenant, enforce_csrf_checks=False, **defaults):
super(TenantClient, self).__init__(enforce_csrf_checks, **defaults)
Expand Down
2 changes: 1 addition & 1 deletion tenant_schemas/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setUpClass(cls):
def setUp(self):
super(RoutesTestCase, self).setUp()
self.factory = RequestFactory()
self.tm = TenantMiddleware()
self.tm = TenantMiddleware(lambda r:r)
self.dtm = DefaultTenantMiddleware()

self.tenant_domain = 'tenant.test.com'
Expand Down

0 comments on commit 1d952d3

Please sign in to comment.