hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

8.9K
active users

Matthias K

@CodenameTim Nothing written down but here's some terrible code which serves me well:

github.com/matthiask/workbench

I pass in the request and the project (the project is the parent object of the logged hours object) and later use the project and/or request to initialize and check various fields. I assign fields on "self.instance" early which makes it possible to move more of the validation to the model. This is useful in this case because some of the objects in this code base ...

GitHubworkbench/workbench/logbook/forms.py at 8e0b23031daa824f9a387b89e26e44dd501fe5c4 · matthiask/workbenchDjango-based Agency Software (time tracking, project management, addressbook, offering and invoicing) - matthiask/workbench