Coder Social home page Coder Social logo

andersinno / django-model-publisher-ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jp74/django-model-publisher

0.0 0.0 3.0 124 KB

Handy mixin/abstract class for providing a "publisher workflow" to arbitrary Django models.

License: BSD 3-Clause "New" or "Revised" License

Makefile 2.55% Python 86.25% CSS 1.22% JavaScript 0.90% HTML 9.08%

django-model-publisher-ai's People

Contributors

aahonen19 avatar bashu avatar cdobbyn avatar cptlemming avatar jedie avatar jssel avatar leejp74 avatar leesolway avatar mrmachine avatar suutari-ai avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-model-publisher-ai's Issues

Feature request: Publish in future

Is there interests in the feature: "Publish in future" (and "publish end date") ?!?

I need this feature in a project and think a good place is this project, isn't it?

unpublish -> Display usage

If you delete an entry in the admin, you get a "in use" list.

This is exactly the kind of "in use list" you should get from an "unpublish" action.

Is there something planed?

clone parler translations -> IntegrityError: Key (language_code, master_id) already exists.

I get the a IntegrityError like:

duplicate key value violates unique constraint "news_news_translation_language_code_37dcef35ba6d4d72_uniq"
DETAIL:  Key (language_code, master_id)=(de, 43) already exists.

while "publish" action. Code point is here:

File "django-model-publisher-ai/publisher/models.py" in publish
  122.         self.clone_translations(draft_obj, publish_obj)
File "django-model-publisher-ai/publisher/models.py" in clone_translations
  216.                 translation.save()

Any idea?

run tests with and without parler/hvad installed...

Some code parts depends on parler/hvad installation... But this is currently not tested ;)

What's about to change tox setup and create a env with and without parler and run tests depend on this?

e.g. to test PublisherHvadAdmin() and PublisherParlerAdmin() and #10

Publisher model with django cms PlaceholderField()...

The publisher flowflow doesn't seem to work if you have a model with a django cms PlaceholderField()

The problem: If you only change the content of the PlaceholderField(): .save() is not executed. So the publisher model will not marked as dirty.

Is there a solution?

edit InlineAdmin -> entry doesn't exist

I attached a PublisherModel via ForeignKey and setup InlineAdmin for it...

If i whant to edit via InlineAdmin then i get 404, because the "published" ID is used...

How to handle this in the right way?!?

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.