API app doesn't respect the coding style
Bug #1275721 reported by
Adnane Belmadiaf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu API Website |
Confirmed
|
Low
|
Unassigned |
Bug Description
The order of model inner classes and standard methods should be as follows :
- All database fields
- Custom manager attributes
- class Meta
- def __str__()
- def save()
- def get_absolute_url()
- Any custom methods
Related branches
lp:~daker/ubuntu-api-website/fix.1275721
- Ubuntu API Website Developers: Pending requested
-
Diff: 478 lines (+151/-124)3 files modifieddeveloper_network/apidocs/models.py (+34/-35)
developer_network/web/forms.py (+85/-0)
developer_network/web/views.py (+32/-89)
Changed in ubuntu-api-website: | |
status: | New → Confirmed |
Changed in ubuntu-api-website: | |
importance: | Undecided → Low |
To post a comment you must log in.