Skip to main content

Django application provides simple task model and admin.

Project description

django-simpletask

Django application provides simple task model and admin.

Install

pip install django-simpletask

Usage

pro/settings

INSTALLED_APPS = [
    'django_db_lock',
]

Note:

  • Mostly you need a lock service, so we add django_db_lock in INSTALLED_APPS.

app/models.py

from django_simpletask.models import SimpleTask


class Task(SimpleTask):
    pass

app/admin.py

from django.contrib import admin
from .models import Task

class TaskAdmin(admin.ModelAdmin):
    list_display = ["title", "status"]
    readonly_fields = [] + Task.SIMPLE_TASK_FIELDS

app/management/commands/doTasks.py

import djclick as click
from app.models import SomeSimpleTaskModel

@click.command()
def main():
    SomeSimpleTaskModel.do_tasks()

Release

v0.1.1 2020/10/30

  • Add SimpleTask.do_tasks.

v0.1.0 2020/10/26

  • First release.
  • Take from django-fastadmin. django-fastadmin should forcus on admin extensions, but NOT abstract models.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-simpletask-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file django-simpletask-0.1.1.tar.gz.

File metadata

  • Download URL: django-simpletask-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.8

File hashes

Hashes for django-simpletask-0.1.1.tar.gz
Algorithm Hash digest
SHA256 71b64fc10ef607b5bf6f3ddaf3920c58f94ecc7ad710ca2a4163207b8c21d262
MD5 bfbd83ae1fca7d2e36c76608f1f85376
BLAKE2b-256 d1396dcf42dd91b28cebe52efe3634282a1a3dfbb3aef1d1317d197324984608

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page