Skip to content

Use a Swappable Model for CRONTAB_MODEL #1

Description

@schinckel

This is the same pattern used by django.contrib.auth (settings.AUTH_USER_MODEL), and I also implemented it for django-occupation.

https://bitbucket.org/schinckel/django-occupation/src/default/src/occupation/models.py

I also implemented a helper function for getting the model:

https://bitbucket.org/schinckel/django-occupation/src/f1ac9d05e3de436ec786cfe608ba5f15149589a0/src/occupation/utils.py#lines-17

It's been a while, but I think that was the same pattern used by d.c.a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions