Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

✨ Add more References fields #3

Closed
wants to merge 2 commits into from
Closed

Conversation

Zethson
Copy link
Member

@Zethson Zethson commented Nov 19, 2024

Required for laminlabs/cellxgene. Motivated by the rich output of census collections, we add a few fields to Reference to make it more comprehensive. These fields are generally not mandatory.

  • Adds an authors field (JSONField)
  • Adds a published_at field (DateTimeField)
  • Splits text into abstract and full_text`

"""Text of the reference such as the abstract or the full-text to enable search."""
description: str = TextField(null=True, default=None)
"""Description of the reference."""
authors: list[str] | None = JSONField(null=True, default=None)
Copy link
Member

Choose a reason for hiding this comment

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

What will the authors field look like?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought of just having ["firstname lastname, firstname, lastname"] and then populating this field. I did not want to create a whole Authors table just for that.

Copy link
Member

Choose a reason for hiding this comment

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

Do you mean ["firstname lastname", "firstname lastname"]?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, yes.

findrefs/models.py Show resolved Hide resolved
@Zethson Zethson closed this Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants