Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Minglee01 committed Mar 2, 2017
1 parent 38d8186 commit 6d1fd3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions model_logging/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
from django.db import models, migrations
from unittest.mock import Mock

"""
The assumption is that a user who is upgrading from 0.1.0 to this version will already have pgcrypto installed. We also check this in 0003 so that they have a verbose error message.
A new user shouldn't migrate through 0001 and should go through the squashed migrations. Hence we pretend that we have a pgcrypto object to allow the migration parsing at startup to be carried out.
"""
try:
import pgcrypto.fields
except ImportError:
Expand Down

0 comments on commit 6d1fd3c

Please sign in to comment.