mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-29 08:47:13 -05:00
Compare commits
1 Commits
4b936b22f0
...
pixeebot/d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
748a542011 |
@@ -55,3 +55,8 @@ 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,6 +66,11 @@ 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)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ pyjwt==2.10.1
|
|||||||
# Database
|
# Database
|
||||||
psycopg2-binary==2.9.10
|
psycopg2-binary==2.9.10
|
||||||
dj-database-url==2.3.0
|
dj-database-url==2.3.0
|
||||||
django-pghistory==3.6.0 # For model history tracking
|
django-pghistory==3.5.2 # For model history tracking
|
||||||
|
|
||||||
# Email
|
# Email
|
||||||
requests==2.32.3 # For ForwardEmail.net API
|
requests==2.32.3 # For ForwardEmail.net API
|
||||||
|
|||||||
Reference in New Issue
Block a user