Python Forum
Upgraded Django, `AdminSplitDateTime` causes exception on `list` object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upgraded Django, `AdminSplitDateTime` causes exception on `list` object
#2
use a print(value = getattr(self.entity, attribute.slug)) to see what is returned. .strip() is a string function. And it says you are trying it on a list.

The answer is likely something like having to use the index (eg value[0].strip()) for each item in value.
Reply


Messages In This Thread
RE: Upgraded Django, `AdminSplitDateTime` causes exception on `list` object - by michael1789 - Feb-24-2021, 04:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Django] Getting exception: "no such table: auth_user" SheeppOSU 3 5,922 Jul-11-2020, 06:06 AM
Last Post: SheeppOSU
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,529 Jun-30-2019, 12:21 AM
Last Post: scidam
  Django serve list-file foralobo 4 4,549 Oct-03-2017, 03:48 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020