Comments (5)
I can think of 3 ways to fix this.
-
According to https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.OneToOneField.parent_link, I believe you can manually set up the parent one-to-one relationship, then you could change the reverse field name. Something like this on
File
:parent = modes.OneToOneField(parent_link=True, related_name='file_model')
-
Change the model name from
File
to something else. -
Change the
File.file
field name to something else.
I think either of these fixes would introduce a migration. But I'm not sure which one would provide the best backwards-compatibility. I would think option 1 would not really affect much. I'm not sure what options 2 and 3 would affect.
Let me know what you think the best option is, and I'll be happy to provide a PR for it.
from djangocms-file.
It looks like this is already fixed (#13).
Can we bump the version and make a release?
from djangocms-file.
I'm experiencing the same error:
djangocms_file.File.file: (models.E006) The field 'file' clashes with the field 'file' from model 'cms.cmsplugin'.
I'm also waiting for new release in order to use django-cms with django 1.9
from djangocms-file.
Fixed by #13
from djangocms-file.
i cant find fix of this without making it abstract >😔
from djangocms-file.
Related Issues (16)
- Download missing from PyPI HOT 1
- Two 0005 migrations and failing tests on Python 3 HOT 2
- djangocms_file.0006_migrate_to_filer...Traceback (most recent call last): HOT 13
- Selecting a file opens the change form HOT 1
- Do not install tests
- if you use the django-filer 1.5.0 it fails
- wrong box sizing HOT 3
- AbstractFile - search_fields = ('name',)
- Django 3.2 or greater support? HOT 2
- Django-cms 3.9 or greater support? HOT 1
- Django 4.2/DjangoCMS 3.11 support HOT 7
- Upgrading from version 0.0.1 HOT 1
- manage.py migrate/check error HOT 3
- Move migration files from migrations_django to its original place HOT 1
- Tooltip for a file link 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 djangocms-file.