On Feb 9, 11:40 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
> On Mon, Feb 9, 2009 at 11:36 PM, Atishay <contactatis...@gmail.com> wrote:
>
> > I just added admin related info in models.py
> > The models however do not show up in django admin. I am using 1.0.2
> > version currently. they were displaying properly in .97 version
>
> >  31
> >  32     def __str__(self):
> >  33         return "name: " +self.first_name + " " + self.mi + " " + \
> >  34             self.last_name + ", " + self.institution
> >  35
> >  36     class Admin:
> >  37         pass
>
> > Is the way to display information in admin different in 1.0.2
>
> 1) There is no .97 version of Django, you were probably using SVN somewhere
> between .96 and 1.0

you are absolutely correct.

> 2) Yes the admin method is very different(as is __str__)
> You can see how the new admin works 
> here:http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02
> And as for __str__ basically change it to __unicode__ and make sure it
> returns unicode(you can also use __str__ so long as you ensure that it
> returns utf-8 encoded data, more trouble that it's worth IMO).

Thank you for pointers. I created admin.py file and it works.

Regards

Atishay
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to