diff --git a/app/admin.py b/app/admin.py index 69d90f3..7328981 100644 --- a/app/admin.py +++ b/app/admin.py @@ -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): diff --git a/app/migrations/0029_auto_20211128_0452.py b/app/migrations/0029_auto_20211128_0452.py new file mode 100644 index 0000000..9be08a8 --- /dev/null +++ b/app/migrations/0029_auto_20211128_0452.py @@ -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), + ), + ]