Iām just starting with the fact that Django is writing my first application - a char chart manager for my family. The tutorial shows how to add related objects in a table. I don't need related objects, I just want to add a regular object to a tabular form. This is what I have in my admin.py
from chores.models import Chore from django.contrib import admin class ChoreAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['description', 'frequency', 'person']}) ] admin.site.register(Chore, ChoreAdmin)
and I want when I click "add chore", instead of seeing:
Description: _____ Frequency: ______ Person: _____
I want him to show:
Description: __________ | Frequency: _______ | Person: _____
Is it trivial, or will it take a lot of effort? And if it's easy, how can I do it?
Thanks!
python django
Wayne werner
source share