django-fitlog / fitlog / migrations / 0003_bodyweight.py

from south.db import db
from django.db import models
from fitlog.models import *


class Migration:

    def forwards(self, orm):

        # Adding model 'BodyWeightLog'
        db.create_table('fitlog_bodyweightlog', (
            ('member', models.ForeignKey(orm['auth.User'])),
            ('weight_date', models.DateField()),
            ('id', models.AutoField(primary_key=True)),
            ('weight', models.DecimalField(max_digits=5, decimal_places=1)),
            ('comments', models.TextField(max_length=5000, blank=True)),
        ))
        db.send_create_signal('fitlog', ['BodyWeightLog'])

    def backwards(self, orm):

        # Deleting model 'BodyWeightLog'
        db.delete_table('fitlog_bodyweightlog')

    models = {
        'fitlog.musclegroup': {
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'name': ('models.CharField', [], {'max_length': '100'})
        },
        'fitlog.weightlogset': {
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'reps': ('models.SmallIntegerField', [], {}),
            'sequence': ('models.SmallIntegerField', [], {}),
            'weight': ('models.SmallIntegerField', [], {}),
            'weight_log_detail': ('models.ForeignKey', ['WeightFitLogDetail'],
                                  {})
        },
        'fitlog.fitlog': {
            'comments': ('models.TextField', [], {'max_length': '5000',
                                                  'blank': 'True'}),
            'create_date': ('models.DateTimeField', [],
                            {'auto_now_add': 'True'}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'last_update': ('models.DateTimeField', [], {'auto_now': 'True'}),
            'log_date': ('models.DateField', [], {}),
            'member': ('models.ForeignKey', ['User'], {}),
            'title': ('models.CharField', [], {'max_length': '255'}),
            'total_time': ('models.TimeField', [], {})
        },
        'fitlog.cardiofitlogdetail': {
            'comments': ('models.CharField', [], {'max_length': '500',
                                                  'blank': 'True'}),
            'distance': ('models.DecimalField', [], {'max_digits': '5',
                                                     'decimal_places': '1'}),
            'exercise_type': ('models.ForeignKey', ['ExerciseType'], {}),
            'fit_log': ('models.ForeignKey', ['FitLog'], {}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'total_time': ('models.TimeField', [], {})
        },
        'fitlog.bodyweightlog': {
            'comments': ('models.TextField', [], {'max_length': '5000',
                                                  'blank': 'True'}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'member': ('models.ForeignKey', ['User'], {}),
            'weight': ('models.DecimalField', [], {'max_digits': '5',
                                                   'decimal_places': '1'}),
            'weight_date': ('models.DateField', [], {})
        },
        'auth.user': {
            '_stub': True,
            'id': ('models.AutoField', [], {'primary_key': 'True'})
        },
        'fitlog.team': {
            'description': ('models.TextField', [], {'max_length': '255',
                                                     'blank': 'True'}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'name': ('models.CharField', [], {'max_length': '50'})
        },
        'fitlog.weightfitlogdetail': {
            'comments': ('models.CharField', [], {'max_length': '500',
                                                  'blank': 'True'}),
            'exercise_type': ('models.ForeignKey', ['ExerciseType'], {}),
            'fit_log': ('models.ForeignKey', ['FitLog'], {}),
            'id': ('models.AutoField', [], {'primary_key': 'True'})
        },
        'fitlog.fitnesstype': {
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'name': ('models.CharField', [], {'max_length': '50'})
        },
        'fitlog.exercisetype': {
            'fitness_type': ('models.ForeignKey', ['FitnessType'], {}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'muscle_group': ('models.ForeignKey', ['MuscleGroup'],
                             {'null': 'True', 'blank': 'True'}),
            'name': ('models.CharField', [], {'max_length': '50'})
        },
        'fitlog.userprofile': {
            'gender': ('models.CharField', [], {'max_length': '1'}),
            'id': ('models.AutoField', [], {'primary_key': 'True'}),
            'user': ('models.ForeignKey', ['User'], {'unique': 'True'})
        }
    }

    complete_apps = ['fitlog']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.