Skip to content

Suggested fixes for System Taxonomies - #8

Merged
ChrisChV merged 3 commits into
chris/system-defined-taxonomiesfrom
jill2/chris/system-defined-taxonomies
Jul 24, 2023
Merged

Suggested fixes for System Taxonomies#8
ChrisChV merged 3 commits into
chris/system-defined-taxonomiesfrom
jill2/chris/system-defined-taxonomies

Conversation

@pomegranited

Copy link
Copy Markdown

No description provided.

to ensure that we're using the correct Taxonomy and ObjectTag class types
@pomegranited
pomegranited requested a review from ChrisChV July 24, 2023 01:16
Comment thread projects/dev.py

AUTHENTICATION_BACKENDS = [
'rules.permissions.ObjectPermissionBackend',
'django.contrib.auth.backends.ModelBackend',

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I had to add this so that Django would let me login to the Admin?

self.system_taxonomy = Taxonomy.objects.get(
name="System defined taxonomy"
).cast()
)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Suggested removing this so that the test_rules are testing with an un-cast system taxonomy, so we know the rules are handling the cast.

try:
self.tag = self.taxonomy.tag_set.get(pk=tag_ref)
self.value = self.tag.value
return

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

nit: not needed anymore

@pomegranited
pomegranited force-pushed the jill2/chris/system-defined-taxonomies branch from 5b8a210 to 9a9e038 Compare July 24, 2023 06:58
@ChrisChV
ChrisChV merged commit 4f51683 into chris/system-defined-taxonomies Jul 24, 2023
@ChrisChV
ChrisChV deleted the jill2/chris/system-defined-taxonomies branch July 24, 2023 17:26
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