Merrick wrote:
This is the correct behavior-- It needs to store the id in the database. When you say "I get the id" where are you doing this from? A template?I setup the classes below in my model and would like to have access to the name of the state in the City model for use in the SlugField. As it is, I get the state id not the name of the state in the slugfield when I add a City through the admin.
Post the code that you are using to display the information, as your models appear to be done correctly.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature