-
Notifications
You must be signed in to change notification settings - Fork 1
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
add basis for Basemodel #903
Conversation
8846f0f
to
6275384
Compare
Almost the same as done in rekenett, good to keep track of when and who edited, for both frontend and backend |
Ignores mypyerror for CustombaseAdmin, since it is not explained wtf the inputs are in sourcecode https://github.com/django/django/blob/main/django/contrib/admin/options.py |
f5aceba
to
848a3eb
Compare
Tar dette som dette kan prøves å kjøres inn, nice |
2b6a31f
to
4a388cd
Compare
689879f
to
e6ed1f3
Compare
e6ed1f3
to
f4b268e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added basis for new basemodel
Adds the fields created_at and updated_at to fetch when it was created and updated
Adds created_by and updated_by to track who updated it last
Also just a simple version field, which keeps track of each time it was updated
Added serializser and admin to support this
Wanted only to know if this was desired or not