Remove installation stats
This commit is contained in:
@@ -13,7 +13,6 @@ from project_tools.api import register_tool
|
||||
from .classes import Property, PropertyNamespace
|
||||
from .links import link_menu_link, link_namespace_details, link_namespace_list
|
||||
from .models import Installation
|
||||
from .tasks import task_details_submit
|
||||
|
||||
|
||||
@receiver(post_migrate, dispatch_uid='create_installation_instance')
|
||||
@@ -22,17 +21,6 @@ def create_installation_instance(sender, **kwargs):
|
||||
Installation.objects.get_or_create()
|
||||
|
||||
|
||||
def check_first_run():
|
||||
try:
|
||||
details = Installation.objects.get()
|
||||
except DatabaseError:
|
||||
# Avoid database errors when the app tables haven't been created yet
|
||||
pass
|
||||
else:
|
||||
if details.is_first_run:
|
||||
task_details_submit.apply_async(queue='tools')
|
||||
|
||||
|
||||
register_model_list_columns(PropertyNamespace, [
|
||||
{
|
||||
'name': _('Label'),
|
||||
@@ -55,7 +43,6 @@ register_model_list_columns(Property, [
|
||||
}
|
||||
])
|
||||
|
||||
check_first_run()
|
||||
register_links(PropertyNamespace, [link_namespace_details])
|
||||
register_links(['installation:namespace_list', PropertyNamespace], [link_namespace_list], menu_name='secondary_menu')
|
||||
register_tool(link_menu_link)
|
||||
|
||||
Reference in New Issue
Block a user