Saturday, June 29, 2019

Re: .model class not added in localhost:8000/admin

In your Destination class you have to return a string representation of the fields you to display in Admin.

https://docs.djangoproject.com/en/2.2/ref/models/instances/#other-model-instance-methods


On Saturday, June 29, 2019 at 7:36:17 AM UTC-5, KUMBHAGIRI SIVAKRISHNA wrote:
'Destination'  class from models.py cannot add to the http://localhost:8000/admin/  
please help me ,give if any suggestions

--
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-users@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/bc60e0f3-7b91-4ef4-b0f4-268209fb38b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment