Skip to content

Commit

Permalink
segundo intento photo en models
Browse files Browse the repository at this point in the history
  • Loading branch information
imTachu committed May 8, 2015
1 parent f82c88c commit 030c293
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
watchapp/migrations
*.py[cod]
.env
.DS_Store
Expand Down
1 change: 0 additions & 1 deletion watchapp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('mobile_number', models.CharField(max_length=15)),
('photo', models.CharField(max_length=200, null=True)),
('properties_as_owner', models.ManyToManyField(related_name='properties_as_owner', to='watchapp.Property')),
('properties_as_resident', models.ManyToManyField(related_name='properties_as_resident', to='watchapp.Property')),
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),
Expand Down
20 changes: 20 additions & 0 deletions watchapp/migrations/0002_userprofile_photo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
('watchapp', '0001_initial'),
]

operations = [
migrations.AddField(
model_name='userprofile',
name='photo',
field=models.CharField(max_length=200, null=True),
preserve_default=True,
),
]

0 comments on commit 030c293

Please sign in to comment.