Bruno C. Vellutini
Bruno C. Vellutini
Changing the default user model in the middle of a project [is tricky](https://docs.djangoproject.com/en/4.2/topics/auth/customizing/#changing-to-a-custom-user-model-mid-project). Many things can break in the database. And these need to be [manually fixed or re-built](https://code.djangoproject.com/ticket/25313) to...
Function-based views are more readable and easier to understand and maintain in the long term. Unless there's a specific reason, we should stay with function-based views. Here's a list of...
Currently, it's required to have an [ORCID](https://orcid.org/) to create an account. The user needs to provide one during registration. However, there's no check to see if this ID is valid,...
The [`ModifiedMedia`](https://github.com/bruvellu/cifonauta/blob/develop/meta/models.py#L32C1-L63C54) model stores the modified metadata of a particular file. But currently, it's a semi-duplicate of [`Media`](https://github.com/bruvellu/cifonauta/blob/develop/meta/models.py#L81) including the fields. This is not ideal to maintain, specially if the...
To make the metadata editing more intuitive, we are revising the fields present in the `Media` model. Currently, the m2m relations between Media and other models are declared elsewhere. For...
Django has built-in methods for validating the data of a model, like the handy `Model.clean_fields()`. We should use these to check if the metadata of 'Media' are being filled correctly....
For consistency, use `taxa` (English plural form) instead of `taxons`. Like [here](https://github.com/bruvellu/cifonauta/blob/develop/meta/models.py#L23) or [here](https://github.com/bruvellu/cifonauta/blob/develop/meta/models.py#L41).
Currently, only the name of the taxon is printed. It could be more informative for debugging and if it shows the id and rank.
Expired sessions in the `django_session` table are not automatically removed (see [documentation](https://docs.djangoproject.com/en/4.2/topics/http/sessions/#clearing-the-session-store)). This led to the enormous number of 40 million expired entries in the Cifonauta database. Kudos to the...
We are deprecating the grid-based CSS framework ([Blueprint](http://www.blueprintcss.org/)) in favour of a responsive layout. All the associated classes should probably be removed to avoid issues and inconsistencies in the template...