This file is indexed.

/usr/lib/python2.7/dist-packages/social/apps/django_app/default/south_migrations/0001_initial.py is in python-social-auth 1:0.2.21+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration

from . import get_custom_user_model_for_migrations, custom_user_frozen_models


USER_MODEL = get_custom_user_model_for_migrations()


class Migration(SchemaMigration):
    def forwards(self, orm):
        # Adding model 'UserSocialAuth'
        db.create_table('social_auth_usersocialauth', (
            (u'id', self.gf('django.db.models.fields.AutoField')(
                primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(
                related_name='social_auth', to=orm[USER_MODEL])),
            ('provider', self.gf('django.db.models.fields.CharField')(
                max_length=32)),
            ('uid', self.gf('django.db.models.fields.CharField')(
                max_length=255)),
            ('extra_data', self.gf(
                'social.apps.django_app.default.fields.JSONField'
            )(default='{}')),
        ))
        db.send_create_signal(u'default', ['UserSocialAuth'])

        # Adding unique constraint on 'UserSocialAuth',
        # fields ['provider', 'uid']
        db.create_unique('social_auth_usersocialauth', ['provider', 'uid'])

        # Adding model 'Nonce'
        db.create_table('social_auth_nonce', (
            (u'id', self.gf('django.db.models.fields.AutoField')(
                primary_key=True)),
            ('server_url', self.gf('django.db.models.fields.CharField')(
                max_length=255)),
            ('timestamp', self.gf('django.db.models.fields.IntegerField')()),
            ('salt', self.gf('django.db.models.fields.CharField')(
                max_length=65)),
        ))
        db.send_create_signal(u'default', ['Nonce'])

        # Adding model 'Association'
        db.create_table('social_auth_association', (
            (u'id', self.gf('django.db.models.fields.AutoField')(
                primary_key=True)),
            ('server_url', self.gf('django.db.models.fields.CharField')(
                max_length=255)),
            ('handle', self.gf('django.db.models.fields.CharField')(
                max_length=255)),
            ('secret', self.gf('django.db.models.fields.CharField')(
                max_length=255)),
            ('issued', self.gf('django.db.models.fields.IntegerField')()),
            ('lifetime', self.gf('django.db.models.fields.IntegerField')()),
            ('assoc_type', self.gf('django.db.models.fields.CharField')(
                max_length=64)),
        ))
        db.send_create_signal(u'default', ['Association'])

        # Adding model 'Code'
        db.create_table('social_auth_code', (
            (u'id', self.gf('django.db.models.fields.AutoField')(
                primary_key=True)),
            ('email', self.gf('django.db.models.fields.EmailField')(
                max_length=75)),
            ('code', self.gf('django.db.models.fields.CharField')(
                max_length=32,
                db_index=True)),
            ('verified', self.gf('django.db.models.fields.BooleanField')(
                default=False)),
        ))
        db.send_create_signal(u'default', ['Code'])

        # Adding unique constraint on 'Code', fields ['email', 'code']
        db.create_unique('social_auth_code', ['email', 'code'])

    def backwards(self, orm):
        # Removing unique constraint on 'Code', fields ['email', 'code']
        db.delete_unique('social_auth_code', ['email', 'code'])

        # Removing unique constraint on 'UserSocialAuth',
        # fields ['provider', 'uid']
        db.delete_unique('social_auth_usersocialauth', ['provider', 'uid'])

        # Deleting model 'UserSocialAuth'
        db.delete_table('social_auth_usersocialauth')

        # Deleting model 'Nonce'
        db.delete_table('social_auth_nonce')

        # Deleting model 'Association'
        db.delete_table('social_auth_association')

        # Deleting model 'Code'
        db.delete_table('social_auth_code')

    models = {
        u'auth.group': {
            'Meta': {'object_name': 'Group'},
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
                     {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField',
                            [], {'to': u"orm['auth.Permission']",
                                 'symmetrical': 'False', 'blank': 'True'})
        },
        u'auth.permission': {
            'Meta': {
                'ordering':
                    "(u'content_type__app_label', "
                    "u'content_type__model', u'codename')",
                'unique_together': "((u'content_type', u'codename'),)",
                'object_name': 'Permission'
            },
            'codename': ('django.db.models.fields.CharField', [],
                         {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [],
                             {'to': u"orm['contenttypes.ContentType']"}),
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [],
                     {'max_length': '50'})
        },
        u'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [],
                            {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [],
                      {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [],
                           {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [],
                       {'symmetrical': 'False', 'related_name': "u'user_set'",
                        'blank': 'True', 'to': u"orm['auth.Group']"}),
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [],
                          {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [],
                         {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [],
                             {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [],
                           {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [],
                          {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [],
                         {'max_length': '128'}),
            'user_permissions': (
                'django.db.models.fields.related.ManyToManyField', [],
                {'symmetrical': 'False', 'related_name': "u'user_set'",
                 'blank': 'True', 'to': u"orm['auth.Permission']"}),
            'username': ('django.db.models.fields.CharField', [],
                         {'unique': 'True', 'max_length': '30'})
        },
        u'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)",
                     'unique_together': "(('app_label', 'model'),)",
                     'object_name': 'ContentType',
                     'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [],
                          {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [],
                      {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [],
                     {'max_length': '100'})
        },
        u'default.association': {
            'Meta': {'object_name': 'Association',
                     'db_table': "'social_auth_association'"},
            'assoc_type': ('django.db.models.fields.CharField', [],
                           {'max_length': '64'}),
            'handle': ('django.db.models.fields.CharField', [],
                       {'max_length': '255'}),
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'issued': ('django.db.models.fields.IntegerField', [], {}),
            'lifetime': ('django.db.models.fields.IntegerField', [], {}),
            'secret': ('django.db.models.fields.CharField', [],
                       {'max_length': '255'}),
            'server_url': ('django.db.models.fields.CharField', [],
                           {'max_length': '255'})
        },
        u'default.code': {
            'Meta': {'unique_together': "(('email', 'code'),)",
                     'object_name': 'Code', 'db_table': "'social_auth_code'"},
            'code': ('django.db.models.fields.CharField', [],
                     {'max_length': '32', 'db_index': 'True'}),
            'email': ('django.db.models.fields.EmailField', [],
                      {'max_length': '75'}),
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'verified': ('django.db.models.fields.BooleanField', [],
                         {'default': 'False'})
        },
        u'default.nonce': {
            'Meta': {'object_name': 'Nonce',
                     'db_table': "'social_auth_nonce'"},
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'salt': ('django.db.models.fields.CharField', [],
                     {'max_length': '65'}),
            'server_url': ('django.db.models.fields.CharField', [],
                           {'max_length': '255'}),
            'timestamp': ('django.db.models.fields.IntegerField', [], {})
        },
        u'default.usersocialauth': {
            'Meta': {'unique_together': "(('provider', 'uid'),)",
                     'object_name': 'UserSocialAuth',
                     'db_table': "'social_auth_usersocialauth'"},
            'extra_data': ('social.apps.django_app.default.fields.JSONField',
                           [], {'default': "'{}'"}),
            u'id': ('django.db.models.fields.AutoField', [],
                    {'primary_key': 'True'}),
            'provider': ('django.db.models.fields.CharField', [],
                         {'max_length': '32'}),
            'uid': ('django.db.models.fields.CharField', [],
                    {'max_length': '255'}),
            'user': ('django.db.models.fields.related.ForeignKey', [],
                     {'related_name': "'social_auth'",
                      'to': u"orm['auth.User']"})
        }
    }
    models.update(custom_user_frozen_models(USER_MODEL))

    complete_apps = ['default']