Skip to content

Improve custom attributes in Django itself. #3

@surister

Description

@surister

Right now we have custom options at the Meta class, example:

class RefreshModel(CrateModel):
    field2 = models.TextField()

    class Meta:
        app_label = "test_app"
        auto_refresh = True

But we are doing Metaclass shenanigans to a accomplish this due lo the lack of extensibility of the django internals.

More details in https://forum.djangoproject.com/t/allow-meta-class-to-have-extra-database-specific-options/40650/3

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