# File: admin.py
from django.contrib import admin
from distribute.models import Categories
(...)
class CategoriesAdmin(admin.ModelAdmin):
    list_display = ['category']
    (...)
(...)
admin.site.register(Categories, CategoriesAdmin)
(...)

2012/4/11 Swaroop Shankar V <swaroo...@gmail.com>

> Hi,
> Could anyone provide me a solution please? Thanks
>
> Regards,
> Swaroop Shankar V
>
>
>
>
> On Mon, Apr 9, 2012 at 2:53 PM, Swaroop Shankar V <swaroo...@gmail.com>wrote:
>
>> Hi all,
>> I have 2 models one is Category and another one is Book. Books will
>> be assigned to a category. So on the admin area i want to display a link on
>> the dashboard which will take the user to a page where all the categories
>> will be listed. On clicking on to any of the category user should be taken
>> to a page where the books assigned under that category is displayed. How
>> can i accomplish the same.
>>
>> Thanks and Regards,
>>
>> Swaroop Shankar V
>>
>>
>  --
> 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.
>

-- 
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