Re: view queryset object in admin view

2015-04-12 Thread Avraham Serour
Well, your class User doesn't have an attribute name you are using on the method __unicode__, you should define and set the attribute name with something like a textfield On Apr 13, 2015 3:21 AM, "makayabou" wrote: > Hello, > > Sorry for the previous send unattended... > > I have problems trying

Re: view queryset object in admin view

2015-04-12 Thread makayabou
Hello, Sorry for the previous send unattended... I have problems trying to print values of a QUerySet Object in Admin View. In admin view, I would like to get a clear list of results, > as defined in __unicode__ from class User. > Instead, I get: > > > > > I just need Jean Dubois.. > > Here's th

view queryset object in admin view

2015-04-12 Thread makayabou
# Je voudrais, dans ma vue admin, avoir un affichage clair des maintenances # effectuées, qui corresponde à __unicode__ définie dans Ordi # mais j'ai : In admin view, I would like to get a clear list of results, as defined in __unicode__ from class User. Instead, I get: > I just need Jean Duboi

Re: Django ProgrammingError: no relation exists when using ManyToManyfield

2015-04-12 Thread Pavel Kuchin
Hi Chase, Did you try makemigrations and migrate: $ python manage.py makemigrations $ python manage.py migrate You should run them for all modules at first time (do not set any specific module). Best regards, Pavel. I can post code and errors here, but have already posted on > stackoverflow.co

Django Admin: Dynamically add inlines based on parent FK

2015-04-12 Thread Michael H
Hello, I have a model (FooParent) which has an FK (FooFk) and an inline model (BazChildInline). When a user selects a FooFk value and then saves FooParent, I want to use the value of FooFk to query my app, get related results, and dynamically add inline entries to BazChildInline. I'm not sure