Removed Corban's Shenanigans
Butthead
This commit is contained in:
parent
f10d849631
commit
d1307a6c81
BIN
src/db.sqlite3
BIN
src/db.sqlite3
Binary file not shown.
@ -31,7 +31,7 @@ class ReusableAutoField(models.PositiveIntegerField):
|
||||
|
||||
|
||||
class Peg(models.Model):
|
||||
"""Represents a person getting pegged"""
|
||||
"""Represents a person's peg"""
|
||||
|
||||
peg_number = ReusableAutoField(primary_key=True, default=ReusableAutoField.get_default, editable=False)
|
||||
|
||||
@ -74,13 +74,13 @@ def validate_section_character(value):
|
||||
banned_characters = ["I"]
|
||||
|
||||
if value in banned_characters:
|
||||
raise ValidationError(f"The character <{value}> is a prohibited character because fuck you I guess")
|
||||
raise ValidationError(f"The character <{value}> is a prohibited character.")
|
||||
|
||||
|
||||
class Section(models.Model):
|
||||
"""Represents a section of the scoreboard"""
|
||||
|
||||
# character field stores a single character but doesnt allow for 'E' or 'e'
|
||||
# character field stores a single character but doesnt allow for 'I' or 'i'
|
||||
character = models.CharField(primary_key=True, max_length=1, validators=(validate_section_character, ))
|
||||
|
||||
def clean(self):
|
||||
|
@ -24,7 +24,7 @@
|
||||
<input type="number" class="form-control" id="pegAmount" name="pegAmount" min="1" max="9999" required="true">
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<button type="submit" class="btn btn-success me-auto">Start Pegging Baby</button>
|
||||
<button type="submit" class="btn btn-success me-auto">Start Pegging</button>
|
||||
<button type="button" class="btn btn-danger" data-bs-dismiss="modal" aria-label="Close">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -1,3 +1,3 @@
|
||||
home = C:\Users\james\AppData\Local\Programs\Python\Python310
|
||||
home = C:\Users\JamesParkin\AppData\Local\Programs\Python\Python310
|
||||
include-system-site-packages = false
|
||||
version = 3.10.8
|
||||
|
Loading…
x
Reference in New Issue
Block a user