URLFields can't parse byond urls...
This commit is contained in:
parent
6c53c83826
commit
915905c4be
20
src/gameservers/migrations/0010_auto_20150223_1927.py
Normal file
20
src/gameservers/migrations/0010_auto_20150223_1927.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gameservers', '0009_server_last_updated'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='server',
|
||||
name='game_url',
|
||||
field=models.CharField(max_length=255),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
@ -9,7 +9,7 @@ import redis
|
||||
|
||||
class Server(models.Model):
|
||||
title = models.CharField(max_length=255)
|
||||
game_url = models.URLField()
|
||||
game_url = models.CharField(max_length=255)
|
||||
site_url = models.URLField(blank=True)
|
||||
current_players = models.PositiveIntegerField(default=0, editable=False)
|
||||
last_updated = models.DateTimeField(auto_now=True, default=timezone.now)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user