mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
12 lines
279 B
Python
12 lines
279 B
Python
from django.http import HttpResponse
|
|
from django.views.generic import View
|
|
|
|
from .models import DummyModel
|
|
|
|
|
|
class DummyModelsView(View):
|
|
|
|
def get(self, request):
|
|
instance_count = DummyModel.objects.count()
|
|
return HttpResponse(f"Instances: {instance_count}")
|