1
0
mirror of https://github.com/django/django.git synced 2025-04-22 00:04:43 +00:00

miner changes

This commit is contained in:
Krishna2864 2023-12-02 14:42:34 +05:30
parent 3ba0a08eaf
commit 73a7678847
2 changed files with 1 additions and 4 deletions

View File

@ -53,5 +53,3 @@ class SystemUser(models.Model):
class ReportData(models.Model):
title = models.CharField(max_length=255)
owner = models.ForeignKey(SystemUser, on_delete=models.CASCADE)

View File

@ -9,12 +9,12 @@ from django.db import models
from .models import (
Band,
DynOrderingBandAdmin,
ReportData,
Song,
SongInlineDefaultOrdering,
SongInlineNewOrdering,
SystemUser,
UserPermission,
ReportData,
)
@ -250,4 +250,3 @@ class TestCustomAdminOrdering(TestCase):
)
expected_order = [self.user2, self.user1] # Ordering by permissions count
self.assertEqual(list(fk_field.queryset), expected_order)