add messenger db to admin
This commit is contained in:
parent
69f66992ef
commit
981a8636bb
@ -1,4 +1,4 @@
|
||||
from api_player.models import GuiSettings
|
||||
from api_player.models import GuiSettings, MessengePresets
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
@ -9,4 +9,12 @@ class GuiSettingsAdmin(admin.ModelAdmin):
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
class MessengePresetsAdmin(admin.ModelAdmin):
|
||||
|
||||
class Meta:
|
||||
model = MessengePresets
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
admin.site.register(GuiSettings, GuiSettingsAdmin)
|
||||
admin.site.register(MessengePresets, MessengePresetsAdmin)
|
||||
|
@ -26,7 +26,7 @@ class GuiSettings(models.Model):
|
||||
max_length=255,
|
||||
help_text="should be a mount point, for statistics",
|
||||
default='/')
|
||||
extra_extensions = models.CharField(
|
||||
extra_extensions = models.CharField(
|
||||
max_length=255,
|
||||
help_text="file extensions, that are only visible in GUI",
|
||||
blank=True, null=True, default='')
|
||||
@ -44,15 +44,15 @@ class GuiSettings(models.Model):
|
||||
|
||||
|
||||
class MessengePresets(models.Model):
|
||||
name = models.CharField(max_length=255, help_text="the preset name")
|
||||
name = models.CharField(max_length=255, help_text="the preset name")
|
||||
|
||||
message = models.CharField(
|
||||
message = models.CharField(
|
||||
max_length=1024, blank=True, null=True, default='')
|
||||
|
||||
x = models.CharField(
|
||||
x = models.CharField(
|
||||
max_length=512, blank=True, null=True, default='')
|
||||
|
||||
y = models.CharField(
|
||||
y = models.CharField(
|
||||
max_length=512, blank=True, null=True, default='')
|
||||
|
||||
font_size = models.IntegerField(default=24)
|
||||
|
Loading…
Reference in New Issue
Block a user