Skip to content

Filter on None on leaflets with no party page#426

Open
symroe wants to merge 1 commit into
masterfrom
fix-no-party-page
Open

Filter on None on leaflets with no party page#426
symroe wants to merge 1 commit into
masterfrom
fix-no-party-page

Conversation

@symroe

@symroe symroe commented Jun 29, 2026

Copy link
Copy Markdown
Member

It would be nice to convert this to a NOT NULL field, but this is a quick fix to the view

It would be nice to convert this to a NOT NULL field, but this is a
quick fix to the view
@chris48s

chris48s commented Jun 30, 2026

Copy link
Copy Markdown
Member

Given it isn't a NOT NULL, should we actually make this

.filter(Q(ynr_party_id="") | Q(ynr_party_id__isnull=True))

?

@symroe

symroe commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

Yes, well, the ideal would be to change the field. Maybe I just do that. There is no data with "" as the value in this field, and no code that's writing "" to it, so the OR wouldn't change anything.

Let me just make a migration to convert this and do it properly. Hold the line.

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