Comments (3)
你解决问题了吗?我也想把这个权限给删掉。同用simpleui,还有一个问题就是这个Django APScheduler没有图标的问题,你有尝试过给它们加图标上去吗?
Did you solve the problem? I'd like to get rid of that, too. Another problem with simpleui is that this Django APScheduler doesn't have an icon. Have you tried to add an icon to it?
from django-apscheduler.
我认为可能无效的原因是因为,单单的继承是无效的?需要子类@admin.register(DjangoJob)
,如果可以,我想看看你当时的代码是怎么执行的。
而且,如果简单继承,然后使用@admin.register(DjangoJob)
注册,如下面的代码所示:
@admin.register(DjangoJob)
class CustomDjangoJobAdmin(DjangoJobAdmin):
pass
会产生django.contrib.admin.sites.AlreadyRegistered: The model DjangoJob is already registered with 'django_apscheduler.DjangoJobAdmin'.
的错误。如果你遇到了这个错误,我想知道你是怎么解决的。
And the reason why I think it might not work is because inheritance alone is not working, right? I need to subclass
@admin.register(DjangoJob)
, if I can, I'd like to see how your code executes at the time.
Also, if you simply inherit, then register with '@admin.register(DjangoJob)', as shown in the following code:
@admin.register(DjangoJob)
class CustomDjangoJobAdmin(DjangoJobAdmin):
pass
Creates a django. Contrib. Admin. Sites. AlreadyRegistered: The model DjangoJob is already registered with django_apscheduler. DjangoJobAdmin.
error. If you come across this mistake, I'd like to know what you did to fix it.
from django-apscheduler.
Related Issues (20)
- PytzUsageWarning on Startup HOT 3
- Missing migration
- Feat: Add management command to clean up job execution table HOT 2
- How to associate django_apscheduler_djangojob with my own model by ForeignKey HOT 1
- Job automatically disappeared in random time HOT 2
- Feature: simplified closing of old db connections HOT 4
- Client number building up leading to fatal error HOT 1
- skipped: maximum number of running instances reached
- cron function that is running over 15 seconds is not working HOT 1
- DB error executing '_get_jobs' ((2013, 'Lost connection to MySQL server during query')). Retrying with a new DB connection... HOT 3
- Add @util.close_old_connections in the _get_jobs(self, **filters) funtion for the DB connection
- AttributeError("'zoneinfo.ZoneInfo' object has no attribute 'localize'") and 'dict' object has no attribute 'has_header'
- ModuleNotFoundError: No module named 'backports'
- Scheduler goes idle or does not execute jobs at all HOT 1
- transaction.atomic() problem with DATABASE_ROUTERS HOT 2
- django-apscheduler (0.6.2) not working with psycopg2-binary (2.9.4 and up)
- Trigger scheduled job to be executed manually HOT 2
- Unapplying Migrations Fails HOT 1
- DjangoJobStore Randomly Deletes Jobs 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 django-apscheduler.