mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-29 10:47:00 -05:00
Compare commits
1 Commits
pixeebot/d
...
fcfe264051
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcfe264051 |
@@ -55,8 +55,3 @@ class PageView(models.Model):
|
|||||||
return model_class.objects.filter(pk__in=id_list).order_by(preserved)
|
return model_class.objects.filter(pk__in=id_list).order_by(preserved)
|
||||||
|
|
||||||
return model_class.objects.none()
|
return model_class.objects.none()
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
model_name = self.__class__.__name__
|
|
||||||
fields_str = ", ".join((f"{field.name}={getattr(self, field.name)}" for field in self._meta.fields))
|
|
||||||
return f"{model_name}({fields_str})"
|
|
||||||
|
|||||||
@@ -66,11 +66,6 @@ class TrackedModel(models.Model):
|
|||||||
).order_by('-pgh_created_at')
|
).order_by('-pgh_created_at')
|
||||||
return self.__class__.objects.none()
|
return self.__class__.objects.none()
|
||||||
|
|
||||||
def __str__(self):
|
|
||||||
model_name = self.__class__.__name__
|
|
||||||
fields_str = ", ".join((f"{field.name}={getattr(self, field.name)}" for field in self._meta.fields))
|
|
||||||
return f"{model_name}({fields_str})"
|
|
||||||
|
|
||||||
class HistoricalSlug(models.Model):
|
class HistoricalSlug(models.Model):
|
||||||
"""Track historical slugs for models"""
|
"""Track historical slugs for models"""
|
||||||
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
|
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ pytest==8.3.4
|
|||||||
pytest-django==4.10.0
|
pytest-django==4.10.0
|
||||||
|
|
||||||
# WebSocket Support
|
# WebSocket Support
|
||||||
channels==4.2.0
|
channels==4.2.2
|
||||||
channels-redis==4.2.1
|
channels-redis==4.2.1
|
||||||
daphne==4.1.2
|
daphne==4.1.2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user