Skip to content

Commit 7685efc

Browse files
Changes done and migrations squashed
1 parent caafce3 commit 7685efc

File tree

6 files changed

+9
-133
lines changed

6 files changed

+9
-133
lines changed

junction/profiles/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
class ProfileAdmin(admin.ModelAdmin):
6-
list_display = ('__unicode__', 'city', 'contact_no')
6+
list_display = ('user', 'city', 'contact_no')
77
search_fields = ('contact_no', 'city')
88

99
admin.site.register(Profile, ProfileAdmin)

junction/profiles/migrations/0001_initial.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ class Migration(migrations.Migration):
1313

1414
operations = [
1515
migrations.CreateModel(
16-
name='Profiles',
16+
name='Profile',
1717
fields=[
1818
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19-
('city', models.CharField(max_length=100)),
20-
('contact_no', models.CharField(max_length=10)),
21-
('created', models.DateTimeField(auto_now_add=True, verbose_name=b'Created', null=True)),
22-
('modified', models.DateTimeField(auto_now=True, verbose_name=b'Last Modified', null=True)),
19+
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
20+
('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')),
21+
('city', models.CharField(max_length=100, null=True, blank=True)),
22+
('contact_no', models.CharField(max_length=15, null=True, blank=True)),
23+
('created_by', models.ForeignKey(related_name='created_profile_set', verbose_name='Created By', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
24+
('modified_by', models.ForeignKey(related_name='updated_profile_set', verbose_name='Modified By', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
2325
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),
2426
],
2527
options={
28+
'abstract': False,
2629
},
2730
bases=(models.Model,),
2831
),

junction/profiles/migrations/0002_auto_20160706_0211.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

junction/profiles/migrations/0003_auto_20160706_1914.py

Lines changed: 0 additions & 22 deletions
This file was deleted.

junction/profiles/migrations/0004_auto_20160709_2023.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

junction/profiles/migrations/0005_auto_20160905_0044.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)