Skip to content

Commit

Permalink
Handle contrib apps
Browse files Browse the repository at this point in the history
And apps with dots in their app_label.
  • Loading branch information
blag committed Apr 24, 2017
1 parent bfd0473 commit 4ff4e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,5 @@ def join(app_label, model):


def split(model):
app_label, model = model.split(".")
app_label, _, model = model.rpartition(".")
return app_label, model

0 comments on commit 4ff4e8a

Please sign in to comment.