File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+ from __future__ import print_function
3+ from django .conf import settings
4+ from south .v2 import DataMigration
5+ from ietf .utils .management .commands .import_htpasswd import import_htpasswd_file
6+
7+ class Migration (DataMigration ):
8+
9+ def forwards (self , orm ):
10+ "Write your forwards methods here."
11+ # Note: Don't use "from appname.models import ModelName".
12+ # Use orm.ModelName to refer to models in this application,
13+ # and orm['appname.ModelName'] for models in other applications.
14+ print ("Importing password hashes from %s," % settings .HTPASSWD_FILE )
15+ print ("leaving entries without matching usernames alone." )
16+ import_htpasswd_file (settings .HTPASSWD_FILE , verbosity = 2 )
17+
18+ def backwards (self , orm ):
19+ "Write your backwards methods here."
20+
21+ models = {
22+
23+ }
24+
25+ complete_apps = ['ietfauth' ]
26+ symmetrical = True
You can’t perform that action at this time.
0 commit comments