#9942: Make datatype changes Person model

This commit is contained in:
PCoder 2021-11-28 10:22:30 +05:30
parent e796a13584
commit 0ad897085e
2 changed files with 55 additions and 1 deletions

View file

@ -43,8 +43,9 @@ class PersonAdmin(admin.ModelAdmin):
),
}),
)
list_display = ['full_name', 'country', 'organization']
list_display = ['id', 'full_name', 'country', 'organization']
list_editable = ['full_name', 'country', 'organization']
list_display_links = ['id']
class ResourceAdmin(admin.ModelAdmin):

View file

@ -0,0 +1,53 @@
# Generated by Django 3.2.5 on 2021-11-28 04:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0028_alter_organization_category'),
]
operations = [
migrations.AlterField(
model_name='person',
name='contact_email',
field=models.EmailField(blank=True, max_length=254, null=True),
),
migrations.AlterField(
model_name='person',
name='email_2',
field=models.EmailField(blank=True, max_length=254, null=True),
),
migrations.AlterField(
model_name='person',
name='mobile_number',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AlterField(
model_name='person',
name='mr_mrs',
field=models.TextField(blank=True, choices=[('', ''), ('Ms', 'Ms'), ('Ms.', 'Ms.'), ('Mr', 'Mr'), ('Mr.', 'Mr.')], null=True),
),
migrations.AlterField(
model_name='person',
name='personal_url',
field=models.URLField(blank=True, null=True),
),
migrations.AlterField(
model_name='person',
name='professional_phone',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AlterField(
model_name='person',
name='skype',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AlterField(
model_name='person',
name='url',
field=models.URLField(blank=True, null=True),
),
]