JAWD-001 / peer_mentoring

Peer Mentoring Application
0 stars 1 forks source link

Missing views #17

Closed bbelderbos closed 1 year ago

bbelderbos commented 1 year ago

I see we have these models:

$ agg models.Mode
account_management/models.py
11:class Interest(models.Model):
20:class Photo(models.Model):
30:class UserProfile(models.Model):

groups/models.py
10:class Avatar(models.Model):
19:class Category(models.Model):
27:class Group(models.Model):
39:class Post(models.Model):
56:class Comment(models.Model):

Can you list out here which ones will be managed in the admin vs in the front-end, that is for which ones we still need views? Then we can work on them in individual issues. Thanks.

JAWD-001 commented 1 year ago

I was going to have them be user managed. Therefore I will need some views. Is there a way to include a form within another form? As in can a user create a category or avatar at the same time they are making the group? I wanted to be able to reuse categories during group creation, that's why I wanted to have categories be more dynamic.

bbelderbos commented 1 year ago

Yes you can work with multiple forms in your view, just instantiate them, pass them to the template for rendering, then handle both of them upon POST request. Let me know if you need help ...

JAWD-001 commented 1 year ago

Groups joined and groups managed should be added views, can get to those tonight/tomorrow with some help.

bbelderbos commented 1 year ago

ok let's look at this, again I don't see new PRs? please use branches + open PR for every chunk of work so I can review, thanks, refresher if needed:

Project Git Workflow - https://pybites.mykajabi.com/products/pybites-developer-mindset/categories/2560320/posts/9297325

bbelderbos commented 1 year ago

Getting close here, what views still need to get done?