mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
* Better linting config * Applies isort on django-stubs, only style changes * Fixes black and isort compat
13 lines
444 B
Python
13 lines
444 B
Python
from django.contrib.sites.models import Site
|
|
from django.db import models
|
|
|
|
class FlatPage(models.Model):
|
|
url: models.CharField = ...
|
|
title: models.CharField = ...
|
|
content: models.TextField = ...
|
|
enable_comments: models.BooleanField = ...
|
|
template_name: models.CharField = ...
|
|
registration_required: models.BooleanField = ...
|
|
sites: models.ManyToManyField[Site, Site] = ...
|
|
def get_absolute_url(self) -> str: ...
|