Opened 18 years ago

Closed 18 years ago

#4205 closed (invalid)

question mark in the end of url causes wrong list display in admin panel

Reported by: konstantin.pavlovsky@… Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have customized display of list of orders with list_display.
it works fine.
there are all nessesery columns i need.
but when i put question mark (for GET method) in the end i can see only first field of my model in the list.
and it is not the default onem str it is just first field in model

here is my model

class Orders(models.Model):

manager = models.ForeignKey(User,verbose_name=_("Manager"))
ordertext = models.TextField(_("Order contents"))
order_date = models.DateTimeField(_("Order date"))
client_name = models.CharField(_("Client"),maxlength=255)
order_state = models.ForeignKey(OrderStates,verbose_name=_("Order state"))
class Admin:


list_display = ['order_date','client_name','manager','order_state']
list_filter = ['manager','order_date','order_state']
pass


class Meta:

verbose_name = _('Order')
verbose_name_plural = _('Orders')



def str(self):

return (self.client_name)

good link is http://django.ru.echo/admin/orders/orders/
i have problems when i follow this link http://django.ru.echo/admin/orders/orders/?
site on local network. u may not try to access.
thanx. hope u will find the problem soon.
i will attach screenshots

Change History (3)

comment:1 by konstantin.pavlovsky@…, 18 years ago

Needs tests: set

after 5 more minute surfing ive discovered that my problem appears randomly. and doesnt depend on question mark

comment:2 by anonymous, 18 years ago

ok.
problem was solved by restarting server.
as i understood it is nesessery to restart apache every time i make any changes.
is it a problem of mod_python only? how to avoid it ?

comment:3 by Malcolm Tredinnick, 18 years ago

Resolution: invalid
Status: newclosed

This Trac is for bug reports only. Please ask support questions on the django-users mailing list.

Note: See TracTickets for help on using tickets.
Back to Top