mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-19 13:18:23 +02:00
31 lines
709 B
Python
31 lines
709 B
Python
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
from labelbase.models import Labelbase
|
|
|
|
|
|
class Profile(models.Model):
|
|
user = models.OneToOneField(User, on_delete=models.CASCADE)
|
|
mempool_endpoint = models.CharField(
|
|
max_length=160,
|
|
default="https://mempool.space",
|
|
blank=True,
|
|
)
|
|
|
|
merge_identical = models.BooleanField(default=False)
|
|
|
|
# modules
|
|
# show "Fiat Finances"
|
|
# show "stats and kpis"
|
|
# show COMMUNITY
|
|
# show RESOURCES
|
|
# use tags
|
|
#
|
|
# last login block_height
|
|
|
|
|
|
|
|
def labelbases(self):
|
|
return Labelbase.objects.filter(user_id=self.user_id)
|
|
|
|
def __str__(self):
|
|
return self.user.username
|