Hey All <br><br>Just been messing around with django and found that can not seam to get admin to work how, it does not support multilayer input I want it I know there is some way of writing your own "view", but wondering would it be possible to write a multilayer setup or what is the wok around or what should i be looking for?<br>
<br>my setup is<br><br><python><br>class Faculty(models.Model):<br>    class Admin: pass<br>    name = models.CharField(maxlength=200)<br>    director = models.CharField(maxlength=200)<br>    web_url = models.CharField(maxlength=200)<br>
        <br>    def __str__(self):<br>        return <a href="http://self.name">self.name</a><br><br>class School(models.Model):<br>    class Admin: pass<br>        <br>    faculty = models.ForeignKey(Faculty)<br>    name = models.CharField(maxlength=200)<br>
    <br>    def __str__(self):<br>        return <a href="http://self.name">self.name</a><br><br>class Programme(models.Model):<br>    class Admin: pass<br>    <br>    duration_choices = (<br>        ('Years', 'years'),<br>
        ('Days', 'days')<br>    )<br><br>    school = models.ForeignKey(School)<br>    name = models.CharField(maxlength=200)<br>    description = models.CharField(maxlength=1000)<br>        <br>    def __str__(self):<br>
        return <a href="http://self.name">self.name</a><br><br>class Stream(models.Model):<br>    class Admin: pass<br>    programme_code = models.ForeignKey(Programme, edit_inline=models.TABULAR, num_in_admin=3)<br>    stream_number = models.IntegerField(core=True)<br>
<br>.....<br><br></python><br><br>Want to be able to click in and keep adding programs to a school and when i do that a new box is created and a steam is created.<br><br>e.g. <br><br>add a Faculty <br>-> input for school is shown<br>
-> add a school<br>-> -> input for Programme is shown<br>-> -> add a programme<br>-> -> -> etc..<br><br>also the option to add new school and program so can have a one to many relationship.<br><br>
Thanks<br>Christian K<br clear="all"><br>-- <br>Christian Kortenhorst<br>mod: +353-(0)87-6183349<br>home: +353-(0)1-4966287