8000 GitHub - Takor0/FullstackRecruitmentTask
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Takor0/FullstackRecruitmentTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queries

from django.db.models import Count
from djangotask.models import AppUser, Discussion, Comment

# 1. All users with non-empty e-mail
AppUser.objects.exclude(email="")

# 2. All discussions with more than 10 comments
Discussion.objects.annotate(comment_count=Count("comments")).filter(
    comment_count__gt=10
)

# 3. All comments whose author has non-empty metadata.
Comment.objects.exclude(app_user__metadata={})

To install app

Create venv

  python3.11 -m venv venv

Activate venv

  source venv/bin/activate

Install dependencies

  pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0