from django.db import models
from django.conf import settings
User=settings.AUTH_USER_MODEL
from comments.models import Comment
# Create your models here.
class Reply(models.Model):
	user_id=models.ForeignKey(User,models.SET_NULL,null=True)
	comment_id=models.ForeignKey(Comment,models.SET_NULL,null=True)
	content=models.TextField()
	created_on=models.DateTimeField()
	updated_on=models.DateTimeField(null=True)


	def __str__(self):
		return self.content

	class Meta:
		ordering=['-created_on']

f2e2557cf8edf48c7e74140be254787408e64e54
<mask token>


class Reply(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return self.content


    class Meta:
        ordering = ['-created_on']

<mask token>


class Reply(models.Model):
    user_id = models.ForeignKey(User, models.SET_NULL, null=True)
    comment_id = models.ForeignKey(Comment, models.SET_NULL, null=True)
    content = models.TextField()
    created_on = models.DateTimeField()
    updated_on = models.DateTimeField(null=True)

    def __str__(self):
        return self.content


    class Meta:
        ordering = ['-created_on']

<mask token>
User = settings.AUTH_USER_MODEL
<mask token>


class Reply(models.Model):
    user_id = models.ForeignKey(User, models.SET_NULL, null=True)
    comment_id = models.ForeignKey(Comment, models.SET_NULL, null=True)
    content = models.TextField()
    created_on = models.DateTimeField()
    updated_on = models.DateTimeField(null=True)

    def __str__(self):
        return self.content


    class Meta:
        ordering = ['-created_on']

from django.db import models
from django.conf import settings
User = settings.AUTH_USER_MODEL
from comments.models import Comment


class Reply(models.Model):
    user_id = models.ForeignKey(User, models.SET_NULL, null=True)
    comment_id = models.ForeignKey(Comment, models.SET_NULL, null=True)
    content = models.TextField()
    created_on = models.DateTimeField()
    updated_on = models.DateTimeField(null=True)

    def __str__(self):
        return self.content


    class Meta:
        ordering = ['-created_on']

from django.db import models
from django.conf import settings
User=settings.AUTH_USER_MODEL
from comments.models import Comment
# Create your models here.
class Reply(models.Model):
	user_id=models.ForeignKey(User,models.SET_NULL,null=True)
	comment_id=models.ForeignKey(Comment,models.SET_NULL,null=True)
	content=models.TextField()
	created_on=models.DateTimeField()
	updated_on=models.DateTimeField(null=True)


	def __str__(self):
		return self.content

	class Meta:
		ordering=['-created_on']
