Giter Club home page Giter Club logo

Comments (9)

etianen avatar etianen commented on May 19, 2024

This issue was copied over from the old Google Code site.

http://code.google.com/p/django-reversion/issues/detail?id=67

from django-reversion.

etianen avatar etianen commented on May 19, 2024

As outlined on the old comment thread, this is an unusual conflict between several different Django applications.

The blame appears to lie mostly with the django.contrib.comments app.

from django-reversion.

etianen avatar etianen commented on May 19, 2024

A possible solution would be to remove the post_syncdb hook and refactor it into an admin command. Any thoughts, people?

from django-reversion.

chrisdickinson avatar chrisdickinson commented on May 19, 2024

I'm +1 on moving the post_syncdb to a management command: something like ./manage.py create_initial_reversions <path.to.model>, where if <path.to.model> wasn't provided it would attempt to run for all models registered with reversion.

from django-reversion.

flreinhard avatar flreinhard commented on May 19, 2024

just did that http://pastebin.com/JJMC0xLz
doesn't run on all models yet just on the apps/models specified

from django-reversion.

etianen avatar etianen commented on May 19, 2024

Looks reasonable.

If you can make it work on all registered models if run without any arguments, I'll have a go at integrating it.

Even better, build it in a fork and I'll do a pull.

from django-reversion.

flreinhard avatar flreinhard commented on May 19, 2024

done

from django-reversion.

etianen avatar etianen commented on May 19, 2024

I've pulled in your work. Many thanks! It works like a dream.

I ended up renaming the management command, hope you don't mind!

from django-reversion.

flreinhard avatar flreinhard commented on May 19, 2024

thx for pulling it!

no i don't mind but i must admit that i do like the idea of having a prefix for management commands so you don't end up with a mess if you do "./manage help". that way you could idenfitfy easily where that command comes from or find quicker what you're looking for since it's somewhat sorted.

from django-reversion.

Related Issues (20)

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.