Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS

Modify FileField


19 Posts   3070 Views


9 December 2009 at 1:40am (Last edited: 9 December 2009 1:40am), Community Member, 37 Posts

I have no idea why that works, but it does.

Thanks a lot.

It would be great if you could explain what that ID thing means though.
I hate not understanding.


9 December 2009 at 1:53am (Last edited: 9 December 2009 2:20am), Community Member, 787 Posts


It might be a little unclear from the docs .. But if you create a has_one relationship , the framework creates a foreign key for the related table in the database table ...

so if you have a student HAS ONE address it will create an addressID column in your student table... When selecting an address in a dropdown , you are effectively selecting a database-ID , and want to write that in your addressID field in your student-table...

Hope that clears it up .. good luck !


9 December 2009 at 2:17am Community Member, 37 Posts

I think I get it.

Thanks again.