Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #21280 -- Don't generate empty migration files

  • Loading branch information...
commit a921f0634583e2f87475e802e2674e7159b4f25b 1 parent 7f508a3
@tuxcanfly tuxcanfly authored timgraham committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/core/management/commands/makemigrations.py
View
3  django/core/management/commands/makemigrations.py
@@ -82,5 +82,6 @@ def handle(self, *app_labels, **options):
open(init_path, "w").close()
# We just do this once per app
directory_created[app_label] = True
+ migration_string = writer.as_string()
with open(writer.path, "wb") as fh:
- fh.write(writer.as_string())
+ fh.write(migration_string)
Please sign in to comment.
Something went wrong with that request. Please try again.