https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.Model.__unicode__
On Sunday, September 16, 2012 2:52:43 PM UTC+2, Harjot Mann wrote: > > hello everyone > I have made a project in django on student dmc records > as there are many students whose data is to be added > i have made 2 classes in models named student_info and certificate and > used a foreignkey in crtificate class as: > student_info = models.ForeignKey(Student_info) > and Roll Number is a primary key which is a field of student_inso class. > But when i added data in admin under certificate as shown in fig. > At student info option, when i add data.....its giving student_info > object......and it becomes difficult to know which students data is to be > added now..... > I want to know is there any method by which i can use roll numbers instead > of student_info object becoz its difficult to recognize if there will largw > number of syudents. > pls help me as sson as possible. i have a presentation on this project. > thnks in advance > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0PWPaTAEcWYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

