Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from dotkom/upgrade/django2
Browse files Browse the repository at this point in the history
Upgrade to Django version 2.0
  • Loading branch information
oleast authored Oct 19, 2018
2 parents cddbff5 + 4ba59ae commit c26e120
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions redwine/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

class Penalty(models.Model):

to = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='penalties')
giver = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='penaltygiver')
to = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='penalties', on_delete=models.CASCADE)
giver = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='penaltygiver', on_delete=models.CASCADE)
amount = models.PositiveIntegerField()
committee = models.CharField(max_length=60)
reason = models.CharField(max_length=100)
Expand Down
2 changes: 1 addition & 1 deletion redwine/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
url(r'^top/$', redwine_top),
url(r'^(\w+)/$', redwine_com),
url(r'^$', redwine_home),
url(r'^admin/', include(admin.site.urls)),
url(r'^admin/', admin.site.urls),
# (r'accounts/login/',include(admin.site.urls)),
]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Django==1.11
Django==2.0.9

0 comments on commit c26e120

Please sign in to comment.