Re: Django Admin doesn't show all fields from model when registered.

2012-08-18 Thread Babatunde Akinyanmi
oops..clicked send too soon and thanks Thomas and Bruno On Sat, Aug 18, 2012 at 11:15 AM, Babatunde Akinyanmi wrote: > Thomas' reply actually did help me narrow down my search efforts to > 'namespaces' which is a term I'm actually new to (as a noob) and I was able > to get links to artic

Re: Django Admin doesn't show all fields from model when registered.

2012-08-18 Thread Babatunde Akinyanmi
Thomas' reply actually did help me narrow down my search efforts to 'namespaces' which is a term I'm actually new to (as a noob) and I was able to get links to articles that did make me understand a little bit more of what goes on beneath the hood of my program especially this: http://docs.python.o

Re: Django Admin doesn't show all fields from model when registered.

2012-08-18 Thread bruno desthuilliers
Le jeudi 16 août 2012 21:00:56 UTC+2, Tundebabzy a écrit : > > Ok I fixed it and in case someone else falls into such a trap, here's > how I fixed it. > > My Answer model had a field with name 'is_correct' and had a method > with name 'is_correct'. > Everything in Python is an object, includ

Re: Django Admin doesn't show all fields from model when registered.

2012-08-17 Thread Thomas Orozco
This is not really django specific, several objects bearing the same name in the same namespace will always lead to trouble ; ) (And this is not even python specific) Glad you could fix it and thanks for posting your solution in case someone else has the same issue though. : ) Le 16 août 2012 21:0

Re: Django Admin doesn't show all fields from model when registered.

2012-08-16 Thread Babatunde Akinyanmi
Ok I fixed it and in case someone else falls into such a trap, here's how I fixed it. My Answer model had a field with name 'is_correct' and had a method with name 'is_correct'. This confused django such that: >>> ans = Answer.objects.get(id=1) >>> ans.is_correct > So I changed the name of the '

Django Admin doesn't show all fields from model when registered.

2012-08-16 Thread Tundebabzy
Hi guys, here's bit of my code http://dpaste.com/hold/787292/ The problem is that my Answer model in admin is missing the 'is_correct', 'date_added' and 'modified' fields.