no need of return statement. now it's working without retrun and same as per above coding without any changes thanks for your valuable information .
On Sat, Jun 29, 2019 at 6:31 PM Joe Reitman <[email protected]> wrote: > 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 [email protected]. > To post to this group, send email to [email protected]. > 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 > <https://groups.google.com/d/msgid/django-users/bc60e0f3-7b91-4ef4-b0f4-268209fb38b6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAMM5N92K-%2BanT217jMWYdT0WDddUD%2BursBfaUwA1XmZvhPsuJg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

