Comments (5)
Will look into that. Please use the "evap" user as described in step 3 of the installation section in the readme for now: https://github.com/e-valuation/EvaP?tab=readme-ov-file#installation-for-development
from evap.
I also noticed the problem after loading custom data which did not have a superuser.
@richardebeling pointed out that REQUIRED_FIELDS should fix it 👍
from evap.
@Keridos do you want to open a pull request that adds the first_name
and last_name
fields to the REQUIRED_FIELDS
class attribute? I would appreciate it! :)
The relevant lines should be
EvaP/evap/evaluation/models.py
Line 1657 in a1af82a
and
EvaP/evap/evaluation/models.py
Line 1735 in a1af82a
from evap.
As I got no experience with django projects I have a question there: I can add the fields first_name_given
and last_name
to the required fields. But does django know that when calling create_superuser that first_name
is actually passed from first_name_given
?. The variable names in there are a bit confusing.
from evap.
Ah, good point, I think we didn't handle that the way django intends in #1903 (see the change here).
My understanding of the django docs on custom user profile managers is that the argument for create_user
and create_superuser
probably should also be renamed from first_name
to first_name_given
. Then, I'd expect that having first_name_given
in the REQUIRED_FIELDS
works.
(background information regarding the variable naming: Since #1903, we distinguish between first_name_given
, the first name that the person legally has and may not have control over, and first_name_chosen
, the preferred first name that the person would like to be addressed by)
from evap.
Related Issues (20)
- JSON enrollment data importer (v1) HOT 2
- Preparation reminder text view
- Separate imported participants from manual changes
- "Delete Semester" (modal submit) button flicker-shows on staff semester page HOT 1
- Update Django Stubs on new release
- Bilingual RewardPointRedemptionEvent names
- Delete participations of long inactive users
- Database validation for model field choices
- Assertion failure due to weak signal receivers having no guarantee of being garbage collected in time HOT 2
- Package EvaP (with nix?) HOT 3
- Clear session of user on permission change HOT 2
- Replace print statements in enrollment preprocessor
- Questionnaire reordering fails HOT 1
- Participation progress bar HOT 1
- Student index page / `TestStudentIndexView` performance
- Group related settings in some nested struct
- Loading of backup fails due to nullable `natural_key`: the `USERNAME_FIELD`
- user delete form not working HOT 2
- Add configuration option in redemption events allowing redemption of reward points only in certain steps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evap.