Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOT COMPLETE] Refactor codebase #209

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

[NOT COMPLETE] Refactor codebase #209

wants to merge 35 commits into from

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.

2 participants