When deleting field in models admin form not updating.

12 views
Skip to first unread message

Gerald Brown

unread,
Mar 30, 2018, 9:31:11 AM3/30/18
to Django users
I am using Django 2.0.3 and Python 3.6.  When I delete a field in the model file it is NOT being deleted in the admin form.  Any ideas on how I can delete the field on the admin form?

Thanks.

Andrew Korir

unread,
Mar 30, 2018, 12:54:14 PM3/30/18
to django...@googlegroups.com
have you tried to run migrations on that particular app in your django project

python manage.py makemigrations app_name

python manage.py migrate app_name

On Fri, Mar 30, 2018 at 4:27 PM, Gerald Brown <gsbr...@gmail.com> wrote:
I am using Django 2.0.3 and Python 3.6.  When I delete a field in the model file it is NOT being deleted in the admin form.  Any ideas on how I can delete the field on the admin form?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3274bd21-77ec-4778-9af5-89c4c0daa12f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gerald Brown

unread,
Mar 31, 2018, 5:35:56 AM3/31/18
to Django users

Gerald Brown

unread,
Mar 31, 2018, 5:41:04 AM3/31/18
to Django users
I had run migrations several times.  The last migration said "Nothing changed.".  However today when I rebooted my system the fields were gone so I guess the reboot took care of them.

Thanks for your reply.


On Saturday, March 31, 2018 at 12:54:14 AM UTC+8, Andrew Korir wrote:
have you tried to run migrations on that particular app in your django project

python manage.py makemigrations app_name

python manage.py migrate app_name
On Fri, Mar 30, 2018 at 4:27 PM, Gerald Brown <gsbr...@gmail.com> wrote:
I am using Django 2.0.3 and Python 3.6.  When I delete a field in the model file it is NOT being deleted in the admin form.  Any ideas on how I can delete the field on the admin form?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages