Merrick wrote:
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.
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?

Post the code that you are using to display the information, as your models appear to be done correctly.

Jeff Anderson

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to