Skip to content

Commit

Permalink
Merge pull request #1175 from gtech-mulearn/dev-server
Browse files Browse the repository at this point in the history
count issue fixed
  • Loading branch information
adnankattekaden authored Oct 4, 2023
2 parents d22353f + d8e4f56 commit cdda65b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/url_shortener.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class UrlShortener(models.Model):
title = models.CharField(max_length=100)
short_url = models.CharField(unique=True, max_length=100)
long_url = models.CharField(max_length=500)
count = models.IntegerField(blank=True, null=True)
count = models.IntegerField(blank=True, null=True, default=0)
updated_by = models.ForeignKey(User, on_delete=models.CASCADE, db_column='updated_by',
related_name='url_shortener_updated_by')
updated_at = models.DateTimeField()
Expand All @@ -20,6 +20,7 @@ class Meta:
managed = False
db_table = 'url_shortener'


class UrlShortenerTracker(models.Model):
id = models.CharField(primary_key=True, max_length=36)
ip_address = models.CharField(max_length=45)
Expand Down

0 comments on commit cdda65b

Please sign in to comment.