Re: Im having trouble with models when it involves more than 1 class.

2014-11-17 Thread Shazwi Suwandi
Thanks Avraham, I'm actually not getting any error or exception. However, I must have confused myself, thinking I should be able to select a staff under the locations tab. You're right, this is actually right (my bad). Anyways, for the part about __unicode__ instead of __str__, I believe thats

Re: Im having trouble with models when it involves more than 1 class.

2014-11-16 Thread Avraham Serour
please post the exception or the error page you are getting. in any case this seems right to me, on the staff page you inline the location, you are complaining that you can only choose the FK of that location to customer and not staff, well, the staff FK is obviously the one you are editing/creati

Im having trouble with models when it involves more than 1 class.

2014-11-15 Thread Shazwi Suwandi
Hi group, This is my first time asking, so bear with me if I'm missing anything. I have an app in my project called *Users*, under *Users* currently I have classes - *Customer, Location, ContactNumber. *I added foreign keys in both *Location *and *ContactNumber* to point to *Customer.* Everyt