2010-08-10 22:11:53 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from south.db import db
|
|
|
|
from django.db import models
|
2010-10-26 12:58:01 +00:00
|
|
|
from user.models import *
|
2010-08-10 22:11:53 +00:00
|
|
|
|
|
|
|
class Migration:
|
|
|
|
|
|
|
|
def forwards(self, orm):
|
|
|
|
|
|
|
|
# Adding field 'UserProfile.files_updated'
|
2010-10-26 12:58:01 +00:00
|
|
|
db.add_column('user_userprofile', 'files_updated', orm['user.userprofile:files_updated'])
|
2010-08-10 22:11:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def backwards(self, orm):
|
|
|
|
|
|
|
|
# Deleting field 'UserProfile.files_updated'
|
2010-10-26 12:58:01 +00:00
|
|
|
db.delete_column('user_userprofile', 'files_updated')
|
2010-08-10 22:11:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
models = {
|
|
|
|
'auth.group': {
|
|
|
|
'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': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
|
|
|
|
},
|
|
|
|
'auth.permission': {
|
|
|
|
'Meta': {'unique_together': "(('content_type', 'codename'),)"},
|
|
|
|
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
|
|
|
|
},
|
|
|
|
'auth.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', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
|
|
|
|
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
|
|
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
|
|
|
'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', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
|
|
|
|
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
|
|
|
|
},
|
|
|
|
'contenttypes.contenttype': {
|
|
|
|
'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
|
|
|
|
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
|
|
|
'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'})
|
|
|
|
},
|
2010-10-26 12:58:01 +00:00
|
|
|
'user.preference': {
|
2010-08-10 22:11:53 +00:00
|
|
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
|
|
|
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
|
|
|
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'preferences'", 'to': "orm['auth.User']"}),
|
|
|
|
'value': ('django.db.models.fields.TextField', [], {'blank': 'True'})
|
|
|
|
},
|
2010-10-26 12:58:01 +00:00
|
|
|
'user.userprofile': {
|
2010-08-10 22:11:53 +00:00
|
|
|
'files_updated': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
|
|
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
|
|
|
'recover_key': ('django.db.models.fields.TextField', [], {}),
|
|
|
|
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'unique': 'True'})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-10-26 12:58:01 +00:00
|
|
|
complete_apps = ['user']
|