Hello!
Sorry for the verbose title. I'm scratching my head trying to solve
these two problems:
1. In my modeladmin class I have:
inlines = [EmploymentInline, GraduationInline, ShiftInline]
I want to group these and display them under a particular fieldset
using:
fieldsets = (
('Related Models', {
'classes': ('collapse',),
'fields': (MY INLINES HERE)
})
Now, I simply cannot make it work. Any way to do that?
2. In my model, I have this:
class Shift(models.Model):
school = models.ForeignKey(School, blank=False, null=False)
teacher = models.ForeignKey('Teacher', blank=False, null=False)
start_hour = models.TimeField()
end_hour = models.TimeField()
class Teacher(models.Model):
schools = models.ManyToManyField(School, verbose_name="Working
Shifts", through=Shift)
Here, I'm having the same problem, ie, displaying schools selection
combo box within 'fields' for Teacher admin page.
This is my first ever post the the group, admin masters, please
help...
Thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
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
-~----------~----~----~----~------~----~------~--~---