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

  • SEARCH
  • Home
  • 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 8761465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:17:36+00:00 2026-06-13T15:17:36+00:00

I have a model that contains two ManyToMany fields, and I have successfully created

  • 0

I have a model that contains two ManyToMany fields, and I have successfully created entries containing these fields. When I create a queryset, the data from here isn’t included. How can I access that data?

Queryset code:

example_list = Example.objects.values_list().order_by('-date_submitted')

Models.py

class Example(models.Model):
    example_id = models.ForeignKey(User)
    date_submitted = models.DateTimeField()
    title = models.CharField(max_length=70)
    description = models.TextField()
    file = models.FileField(upload_to='files')
    photo = models.FileField(upload_to='design_photos')
    materials = models.ManyToManyField('Materials')
    tags = models.ManyToManyField('Tags')
  • 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-13T15:17:37+00:00Added an answer on June 13, 2026 at 3:17 pm

    I’ve solved this by use of the filter method, as follows:

    example_list = Example.objects.filter(tags__tag__contains='jewellery').order_by('-date_submitted')[:10]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Address model that contains two float fields, lat and lng .
I have a model that contains one-to-one fields to other models. I over rid
I have a class that contains data from some model. This class has metadata
I have a model called Story that has two integer fields called views and
I have an Image Model that contains two booleans for IsMain and IsFeatured. I
Say I have an assets model that contains two columns: Assets ownership:string lease_id:integer #
I have json with field that contains two different types. fields:[{value:ZIELONE OKO},{value:{@nil:true}}] I have
I have a view that contains two @Html.DropDownListFor helpers: <div class=editor-field> @Html.DropDownListFor(model => model.Employee,
I have a form that contains two fields to upload files. I need to
I have a deal model that contains two date field. First one is start_date

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.