django-natural-keys
django-natural-keys copied to clipboard
Use as a decorator
Requiring that a model inherit from NaturalKeyModel can conflict with other model modifiers that also requiring inheritance. It would be nice if the same functionality could be exposed via a class decorator. E.g.,
@NaturallyKeyedModel
class MyModel(SomeOtherModelSuperclass):
# ...