Skip to content

Conversation

@sethwoodworth
Copy link
Member

No description provided.

CharlesHolbrow and others added 30 commits December 18, 2012 14:50
Changed UserProfile.files to UserProfile.viewed_notes -- may not have fixed this in all places
Some very messy naming still exists in utils.py and forms.py. for example:
file = Note.objects.all()

At this point I ran the following forwards migration, and things are working. suspect there are a lot of bugs still
       still # Removing M2M table for field tags on 'File'
        db.delete_table('notes_file_tags')

        # Adding M2M table for field tags on 'Note'
        db.create_table('notes_file_tags', (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('note', models.ForeignKey(orm['notes.note'], null=False)),
            ('tag', models.ForeignKey(orm['notes.tag'], null=False))
        ))
        db.create_unique('notes_file_tags', ['note_id', 'tag_id'])

        # Changing field 'Vote.note'
        db.alter_column('notes_vote', 'note_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['notes.Note']))

        # Changing field 'ReputationEvent.file'
        db.alter_column('notes_reputationevent', 'file_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['notes.Note'], null=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants