-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from andela/ft-create-profile-162948841
#162948841 create profiles
- Loading branch information
Showing
36 changed files
with
708 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from django.contrib import admin | ||
|
||
from .models import User | ||
|
||
admin.site.register(User) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from django.contrib import admin | ||
from .models import UserProfile | ||
|
||
admin.site.register(UserProfile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from django.apps import AppConfig | ||
|
||
|
||
class ProfilesConfig(AppConfig): | ||
name = 'profiles' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 2.1.4 on 2019-01-16 11:17 | ||
|
||
import cloudinary.models | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='UserProfile', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('bio', models.TextField(max_length=200)), | ||
('gender', models.CharField(choices=[('M', 'MALE'), ('F', 'FEMALE')], default='M', max_length=10)), | ||
('profile_image', cloudinary.models.CloudinaryField(default='', max_length=255, null=True, verbose_name='images')), | ||
('first_name', models.CharField(max_length=100)), | ||
('last_name', models.CharField(max_length=100)), | ||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
authors/apps/profiles/migrations/0002_auto_20190116_1253.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.1.4 on 2019-01-16 12:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='first_name', | ||
field=models.CharField(default='', max_length=100), | ||
), | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='last_name', | ||
field=models.CharField(default='', max_length=100), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0003_auto_20190116_1348.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-16 13:48 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0002_auto_20190116_1253'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(default='', max_length=255, null=True, verbose_name='image'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.4 on 2019-01-17 08:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0003_auto_20190116_1348'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='slug', | ||
field=models.SlugField(blank=True, null=True), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/profiles/migrations/0005_auto_20190117_1605.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.4 on 2019-01-17 16:05 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0004_userprofile_slug'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='bio', | ||
field=models.TextField(default='', max_length=200), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0006_auto_20190117_1610.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-17 16:10 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0005_auto_20190117_1605'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(default='', max_length=255, verbose_name='image'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0007_auto_20190117_1610.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-17 16:10 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0006_auto_20190117_1610'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(default='', max_length=255, null=True, verbose_name='image'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0008_auto_20190117_1614.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-17 16:14 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0007_auto_20190117_1610'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(blank=True, default='', max_length=255, null=True, verbose_name='image'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/profiles/migrations/0009_userprofile_updated_at.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 06:23 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0008_auto_20190117_1614'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='userprofile', | ||
name='updated_at', | ||
field=models.DateField(auto_now=True), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0010_auto_20190121_1206.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 12:06 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0009_userprofile_updated_at'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(default='', max_length=255, verbose_name='image'), | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
authors/apps/profiles/migrations/0011_remove_userprofile_slug.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 12:40 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0010_auto_20190121_1206'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='userprofile', | ||
name='slug', | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
authors/apps/profiles/migrations/0012_auto_20190121_1342.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 13:42 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0011_remove_userprofile_slug'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='first_name', | ||
field=models.CharField(max_length=100), | ||
), | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='gender', | ||
field=models.CharField(choices=[('M', 'MALE'), ('F', 'FEMALE'), ('N', 'I PREFER NOT TO SAY')], default='N', max_length=10), | ||
), | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='last_name', | ||
field=models.CharField(max_length=100), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/profiles/migrations/0013_auto_20190121_1344.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 13:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0012_auto_20190121_1342'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='gender', | ||
field=models.CharField(choices=[('M', 'MALE'), ('F', 'FEMALE'), ('N', 'I PREFER NOT TO SAY')], default='N', error_messages={'incorrect_format': 'dd'}, max_length=10), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/profiles/migrations/0014_auto_20190121_1345.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 13:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0013_auto_20190121_1344'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='gender', | ||
field=models.CharField(choices=[('M', 'MALE'), ('F', 'FEMALE'), ('N', 'I PREFER NOT TO SAY')], default='N', error_messages={'required': 'dd'}, max_length=10), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
authors/apps/profiles/migrations/0015_auto_20190121_1406.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 14:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0014_auto_20190121_1345'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='first_name', | ||
field=models.CharField(error_messages={'required': 'first name'}, max_length=100), | ||
), | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='gender', | ||
field=models.CharField(choices=[('M', 'MALE'), ('F', 'FEMALE'), ('N', 'I PREFER NOT TO SAY')], default='N', max_length=10), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
authors/apps/profiles/migrations/0016_auto_20190121_1407.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 14:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0015_auto_20190121_1406'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='first_name', | ||
field=models.CharField(max_length=100), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0017_auto_20190121_1442.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 14:42 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0016_auto_20190121_1407'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(blank=True, default='no image provided', max_length=255, verbose_name='image'), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
authors/apps/profiles/migrations/0018_auto_20190121_1443.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 2.1.4 on 2019-01-21 14:43 | ||
|
||
import cloudinary.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('profiles', '0017_auto_20190121_1442'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='userprofile', | ||
name='profile_image', | ||
field=cloudinary.models.CloudinaryField(blank=True, max_length=255, verbose_name='image'), | ||
), | ||
] |
Oops, something went wrong.