Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust models so they are fit for a web app #150

Open
fgregg opened this issue Sep 11, 2023 · 0 comments
Open

adjust models so they are fit for a web app #150

fgregg opened this issue Sep 11, 2023 · 0 comments
Labels
core Relating to the core app legislative Relating to the legislative app

Comments

@fgregg
Copy link
Contributor

fgregg commented Sep 11, 2023

The minimum that this would require is adding a nullable slug field to

  • Event
  • Bill
  • Person
  • Organization

I am not advocating that pupa set these slugs, just that they exist on the models and could be filled in later.

Very useful:

  • turn the image attribute on person from a UrlField to a FileField (headshots)
  • turn all the various dates and datetimes from strings to native dates and datetimes.

To effectuate these changes, pupa would have to be adjusted.

This should drastically reduce the need for the councilmatic_core one-to-one models and would make queries much simpler throughout the web apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relating to the core app legislative Relating to the legislative app
Development

No branches or pull requests

2 participants