Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9071847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:01:15+00:00 2026-06-16T18:01:15+00:00

I have a Post , and an User model I want to enable users

  • 0

I have a Post, and an User model

I want to enable users to save or bookmark posts. In other words, they will click a button and the post will be bookmarked/saved. Then the user will be able to see all those posts listed in a page (like YouTube’s watch later).

I think I have to create a Bookmark model. But I’m not sure what kind of assosiation the models should have with Post and User.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:01:16+00:00Added an answer on June 16, 2026 at 6:01 pm

    If you just want to have bookmarks but no other information associated with the bookmark like ‘bookmarked comment’ or ‘blah blah’ you can use has_and_belongs_to_many association. There you won’t need to create a bookmark model. You only need to create the join table in this case. The has_many :through is useful in a case when you need to store more information with the relationship. You can go through this has_and_belongs_to_many_association for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class Posts(models.Model): created_by = models.ForeignKey(User) post = models.CharField(max_length=150) active = models.NullBooleanField()
I have Post and Comment models, and now I want to create User model.
I have a method in my Post model which gets the user posts def
I have model Post with boolean field default. Post belongs to User. I want
I have post and user model and I have Many( posts ) to One(
Possible Duplicate: CakePHP Subscribe Users Model I have three models User Post Friendship What
Let's say I have a User model which has_many :posts , while Post has_many
I have a User model, a Post model, and an Interest model. User has_many
Let's say I have User model and Post model. Post model contains field user_id
A user can create a post. Posts have comments. A comment must belong to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.