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

Implementing CBV #50

Closed
sebastian-code opened this issue May 30, 2016 · 11 comments
Closed

Implementing CBV #50

sebastian-code opened this issue May 30, 2016 · 11 comments

Comments

@sebastian-code
Copy link
Collaborator

This would require a huge amount of work to refactor the code at this level, given the fact than all the views works already smoothly. But this should reduce the amount of actual code and would implement more actual and desirable practices on the project development.

@sebastian-code sebastian-code mentioned this issue Nov 26, 2016
21 tasks
@muddlebee
Copy link

anyone working on this ?

@sebastian-code
Copy link
Collaborator Author

Hi @anweshknayak Not right now. Are you interested into working on this?

@muddlebee
Copy link

@sebastian-code Yes I am. Let me setup this project. I will ask you upon any query

@sebastian-code
Copy link
Collaborator Author

Ok @anweshknayak , I would try my best to help.

@muddlebee
Copy link

@sebastian-code shall I make a different PR for each app ?

@sebastian-code
Copy link
Collaborator Author

Hi @anweshknayak I would think is the best approach.

@muddlebee
Copy link

muddlebee commented Jan 16, 2017

@sebastian-code can you give some hint on what kind of view to use ? ( https://ccbv.co.uk/) I think we can use DetailView or ListView ?
Starting from here (https://github.com/vitorfs/bootcamp/blob/master/bootcamp/activities/views.py#L10)

@sebastian-code
Copy link
Collaborator Author

Hi @anweshknayak that would be a list of objects (notifications) so the right approach would be to inherit from ListView, also, don't forget to inherit from the native LogginRequired mixin into the view.

@tamirOK
Copy link

tamirOK commented Mar 10, 2017

@sebastian-code, do you want every view to be rewritten as cbv?

@sebastian-code
Copy link
Collaborator Author

Well, not necessarily @tamirOK CBV are mainly aimed to reduce verbosity and to avoid cases of DRY, so I imagine than in some cases it makes more sense to have a functional view, and that requires to apply logic to avoid unnecessary work. I would say than I leave it to you were do you want to give something to the project.

Any help is appreciated.

But don't forget to add test, one of the goals is to improve the coverage percentage.

@sebastian-code
Copy link
Collaborator Author

Closing this issue because is to wide and unspecific, which makes it unhelpful. And because is a goal already included in #66 so we can keep up with it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants