Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'get_absolute_url' as a option for Django projects #26

Open
DmytroLitvinov opened this issue Feb 8, 2022 · 0 comments
Open

Add 'get_absolute_url' as a option for Django projects #26

DmytroLitvinov opened this issue Feb 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@DmytroLitvinov
Copy link

Is your feature request related to a problem? Please describe.
According to Django's default coding style there is a next order of model inner classes and standard methods:

  • All database fields
  • Custom manager attributes
  • class Meta
  • def str()
  • def save()
  • def get_absolute_url()
  • Any custom methods

Selection_1223

Describe the solution you'd like
I would like to specify get_absolute_url after save or delete option so it will be like next configuration:

class_attributes_order =
    field,
    meta_class,
    nested_class,
    magic_method,
    save,
    delete,
    get_absolute_url,
    property_method,
    static_method,
    class_method,
    method,
    private_method
@DmytroLitvinov DmytroLitvinov added the enhancement New feature or request label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant