Skip to content

WIP django admin#109

Open
miki725 wants to merge 1 commit into
masterfrom
admin
Open

WIP django admin#109
miki725 wants to merge 1 commit into
masterfrom
admin

Conversation

@miki725

@miki725 miki725 commented Dec 20, 2018

Copy link
Copy Markdown
Collaborator

lots of stupidity at this stage but things are starting to work:

image
image
image

# 1792 - 'selection_note': _('0 of %(cnt)s selected') % {'cnt': len(cl.result_list)},
# 1792 + 'selection_note': _('0 of %(cnt)s selected') % {'cnt': len(cl.result_list.all())},
# def __len__(self):
# return self.count()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, super().count()?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just tried. nope. still recursion

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) parser stack overflow [SQL: 'SELECT count(*) AS count_1 \nFROM (SELECT count(*) AS count_2 \nFROM (SELECT count(*) AS count_3 \nFROM (SELECT count(*) AS count_4 \nFROM (SELECT count(*) AS count_5 \nFROM (SELECT count(*) AS count_6 \nFROM (SELECT count(*) AS count_7 \nFROM (SELECT count(*) AS count_8 \nFROM (SELECT count(*) AS count_9 \nFROM (SELECT count(*) AS count_10 \nFROM (SELECT count(*) AS count_11 \nFROM (SELECT count(*) AS count_12 \nFROM (SELECT count(*) AS count_13 \nFROM (SELECT count(*) AS count_14 \nFROM (SELECT count(*) AS count_15 \nFROM (SELECT question.pk AS question_pk, question.question_text AS question_question_text, question.pub_date AS question_pub_date \nFROM question ORDER BY -pk) AS anon_15) AS anon_14) AS anon_13) AS anon_12) AS anon_11) AS anon_10) AS anon_9) AS anon_8) AS anon_7) AS anon_6) AS anon_5) AS anon_4) AS anon_3) AS anon_2) AS anon_1'] (Background on this error at: http://sqlalche.me/e/e3q8)


@property
def choices(self):
return True

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:trollface:

Signed-off-by: Miroslav Shubernetskiy <miroslav@miki725.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants