Giter VIP home page Giter VIP logo

Comments (5)

jproffitt avatar jproffitt commented on August 11, 2024

I can think of 3 ways to fix this.

  1. 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')
    
  2. Change the model name from File to something else.

  3. 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.

thanosd avatar thanosd commented on August 11, 2024

It looks like this is already fixed (#13).

Can we bump the version and make a release?

from djangocms-file.

saeedsq avatar saeedsq commented on August 11, 2024

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.

czpython avatar czpython commented on August 11, 2024

Fixed by #13

from djangocms-file.

Ekbal41 avatar Ekbal41 commented on August 11, 2024

i cant find fix of this without making it abstract >😔

from djangocms-file.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.