mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-17 18:32:35 +00:00
15 lines
416 B
Python
15 lines
416 B
Python
from baserow.contrib.database.models import Database
|
|
|
|
|
|
class ApplicationFixtures:
|
|
def create_database_application(self, **kwargs):
|
|
if 'group' not in kwargs:
|
|
kwargs['group'] = self.create_group()
|
|
|
|
if 'name' not in kwargs:
|
|
kwargs['name'] = self.fake.name()
|
|
|
|
if 'order' not in kwargs:
|
|
kwargs['order'] = 0
|
|
|
|
return Database.objects.create(**kwargs)
|