mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 07:36:20 +01:00
* Refactor allianceauth into its own package * Add setup * Add missing default_app_config declarations * Fix timerboard namespacing * Remove obsolete future imports * Remove py2 mock support * Remove six * Add experimental 3.7 support and multiple Dj versions * Remove python_2_unicode_compatible * Add navhelper as local package * Update requirements
18 lines
488 B
Python
18 lines
488 B
Python
from django.db import models
|
|
|
|
|
|
class Phpbb3User(models.Model):
|
|
user = models.OneToOneField('auth.User',
|
|
primary_key=True,
|
|
on_delete=models.CASCADE,
|
|
related_name='phpbb3')
|
|
username = models.CharField(max_length=254)
|
|
|
|
def __str__(self):
|
|
return self.username
|
|
|
|
class Meta:
|
|
permissions = (
|
|
("access_phpbb3", u"Can access the phpBB3 service"),
|
|
)
|