Comments (4)
from boomerang.
I think the reason for this behavior is the undocumented swappable property of the User model. It is designed to be replaceable by custom models. However, the configured model must have its data in the initial migration of the app that defines the model. The migrations code seems to generate references to the initial migration of swappable models. I am using the default User model, and its initial migration sets the username to 30 chars. Hence my username FKs are 30 chars long. I am able to work around this with a RunSQL migration to alter the FK data type to varchar(15), but I am in doubt if it's the right thing to do.
from boomerang.
It is left to explain how the populate script worked before. It is possible that it worked at a time when user child objects referred to users by id instead of username and joins were performed to handle user child requests.
from boomerang.
Leaving it as it is for now. Added commit 789d73c with a note about a known bug, a fix for the populator and a potential migration as a workaround that can be applied later.
from boomerang.
Related Issues (20)
- User list pagination warning HOT 1
- Check X-Forwarded-For header HOT 1
- Upgrade dependencies HOT 1
- Tests
- Rename URL arguments HOT 1
- Document synchronization support HOT 1
- Multiple possible problems
- Implement moving of objects to a different parent HOT 1
- Refactoring the core mixins HOT 1
- Release the core mixins as a separate project and use it as a dependency HOT 1
- Write requests to deleted objects and deleted parents HOT 2
- Possibility to configure without limits and/or without deleted object expiry HOT 1
- Search and sort cleanup HOT 1
- Check for proper configuration at initialization HOT 1
- Configurable minimum search rank HOT 1
- Add the until query parameter to page links HOT 1
- Filtering objects based on the parent's deletion status should include all ancestors HOT 1
- Nesting limited objects under their parents in settings is unnecessary HOT 1
- Lock parent objects before create/update/delete of their children HOT 2
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 boomerang.