line too long (99 > 90 characters)
14 api_key = models.CharField(max_length=200, null=True, blank=True)
15
16 def __str__(self):
17 return f"{self.name} {self.provider} {self.url} {self.api_url} {self.extra} {self.api_key}"
line too long (117 > 90 characters)
14 migrations.CreateModel(
15 name='VideoChannel',
16 fields=[
17 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),18 ('name', models.CharField(max_length=200)),
19 ('provider', models.CharField(max_length=200)),
20 ('url', models.URLField()),
line too long (93 > 90 characters)
74 migrations.AddField(
75 model_name='customuser',
76 name='created_at',
77 field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), 78 preserve_default=False,
79 ),
80 migrations.AddField(
line too long (134 > 90 characters)
101 "groups",
102 models.ManyToManyField(
103 blank=True,
104 help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",105 related_name="user_set",
106 related_query_name="user",
107 to="auth.group",
line too long (138 > 90 characters)
86 "is_active",
87 models.BooleanField(
88 default=True,
89 help_text="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", 90 verbose_name="active",
91 ),
92 ),
line too long (94 > 90 characters)
78 "is_staff",
79 models.BooleanField(
80 default=False,
81 help_text="Designates whether the user can log into this admin site.", 82 verbose_name="staff status",
83 ),
84 ),
line too long (107 > 90 characters)
47 error_messages={
48 "unique": "A user with that username already exists."
49 },
50 help_text="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", 51 max_length=150,
52 unique=True,
53 validators=[
line too long (117 > 90 characters)
37 "is_superuser",
38 models.BooleanField(
39 default=False,
40 help_text="Designates that this user has all permissions without explicitly assigning them.", 41 verbose_name="superuser status",
42 ),
43 ),
line too long (106 > 90 characters)
4
5urlpatterns = [
6 path("roles/<int:pk>/", RoleDetail.as_view(), name="role_detail"),
7 path("role-invites/<int:role_invite_id>/role/", RoleDetail.as_view(), name="role_invite_role_detail"), 8 path(
9 "users-events-roles/<int:users_events_roles_id>/role",
10 RoleDetail.as_view(),
line too long (117 > 90 characters)
14 migrations.CreateModel(
15 name='Role',
16 fields=[
17 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),18 ('name', models.CharField(max_length=200)),
19 ('title_name', models.CharField(max_length=200)),
20 ],
line too long (92 > 90 characters)
38 # api docs via spectacular
39 path("v2/schema/", SpectacularAPIView.as_view(), name="schema"),
40 path("v2/schema/swagger-ui/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),
41 path("v2/schema/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),42]
line too long (104 > 90 characters)
37 path("v2/custom-system-roles/", include("custom_sys_roles.urls")),
38 # api docs via spectacular
39 path("v2/schema/", SpectacularAPIView.as_view(), name="schema"),
40 path("v2/schema/swagger-ui/", SpectacularSwaggerView.as_view(url_name="schema"), name="swagger-ui"),41 path("v2/schema/redoc/", SpectacularRedocView.as_view(url_name="schema"), name="redoc"),
42]
line too long (98 > 90 characters)
16"""
17from django.contrib import admin
18from django.urls import include, path
19from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView20from rest_framework_simplejwt.views import (
21 TokenObtainPairView,
22 TokenRefreshView,
line too long (91 > 90 characters)
104
105AUTH_PASSWORD_VALIDATORS = [
106 {
107 "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",108 },
109 {
110 "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
line too long (117 > 90 characters)
14 migrations.CreateModel(
15 name='NotificationContent',
16 fields=[
17 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),18 ('type', models.CharField(max_length=200)),
19 ('target_type', models.CharField(max_length=200)),
20 ('target_id', models.IntegerField()),
line too long (118 > 90 characters)
5urlpatterns = [
6 path("event-topics/", EventTopicListCreate.as_view(), name="event_topic_list_create"),
7 path("event-topics/<int:pk>/", EventTopicRetrieveUpdateDestroy.as_view(), name="event_topic_detail"),
8 path("events/<int:event_id>/event-topic/", EventTopicRetrieveRelation.as_view(), name="event_event_topic_detail"), 9 path(
10 "event-sub-topics/<int:event_sub_topic_id>/event-topic/",
11 EventTopicRetrieveRelation.as_view(),
line too long (105 > 90 characters)
4
5urlpatterns = [
6 path("event-topics/", EventTopicListCreate.as_view(), name="event_topic_list_create"),
7 path("event-topics/<int:pk>/", EventTopicRetrieveUpdateDestroy.as_view(), name="event_topic_detail"), 8 path("events/<int:event_id>/event-topic/", EventTopicRetrieveRelation.as_view(), name="event_event_topic_detail"),
9 path(
10 "event-sub-topics/<int:event_sub_topic_id>/event-topic/",
line too long (100 > 90 characters)
1from django.urls import path
2
3from .views import EventTopicListCreate, EventTopicRetrieveRelation, EventTopicRetrieveUpdateDestroy 4
5urlpatterns = [
6 path("event-topics/", EventTopicListCreate.as_view(), name="event_topic_list_create"),
line too long (117 > 90 characters)
14 migrations.CreateModel(
15 name='EventTopic',
16 fields=[
17 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),18 ('name', models.CharField(blank=True, max_length=200, null=True)),
19 ('slug', models.CharField(max_length=200)),
20 ('system_image_url', models.URLField(blank=True, null=True)),
line too long (122 > 90 characters)
5urlpatterns = [
6 path("event-sub-topics/", EventSubTopicPost.as_view(), name="event_sub_topic_list_create"),
7 path("event-sub-topics/<int:pk>/", EventSubTopicRetrieveUpdateDestroy.as_view(), name="event_sub_topic_detail"),
8 path("event-topics/<int:event_topic_id>/event-sub-topics/", EventSubTopicList.as_view(), name="event_sub_topic_list"),9]
line too long (116 > 90 characters)
4
5urlpatterns = [
6 path("event-sub-topics/", EventSubTopicPost.as_view(), name="event_sub_topic_list_create"),
7 path("event-sub-topics/<int:pk>/", EventSubTopicRetrieveUpdateDestroy.as_view(), name="event_sub_topic_detail"),8 path("event-topics/<int:event_topic_id>/event-sub-topics/", EventSubTopicList.as_view(), name="event_sub_topic_list"),
9]
line too long (95 > 90 characters)
3from .views import EventSubTopicPost, EventSubTopicList,EventSubTopicRetrieveUpdateDestroy
4
5urlpatterns = [
6 path("event-sub-topics/", EventSubTopicPost.as_view(), name="event_sub_topic_list_create"),7 path("event-sub-topics/<int:pk>/", EventSubTopicRetrieveUpdateDestroy.as_view(), name="event_sub_topic_detail"),
8 path("event-topics/<int:event_topic_id>/event-sub-topics/", EventSubTopicList.as_view(), name="event_sub_topic_list"),
9]
line too long (96 > 90 characters)
4class EventSubTopic(models.Model):
5 name = models.CharField(max_length=200, null=True, blank=True)
6 slug = models.CharField(max_length=200, null=True, blank=True)
7 event_topic = models.ForeignKey(EventTopic, on_delete=models.CASCADE, null=True, blank=True) 8
9 class Meta:
10 unique_together = (('slug', 'event_topic'),)
line too long (149 > 90 characters)
19 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20 ('name', models.CharField(blank=True, max_length=2147483647, null=True)),
21 ('slug', models.CharField(blank=True, max_length=2147483647, null=True)),
22 ('event_topic', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='event_topics.eventtopic')),23 ],
24 options={
25 'unique_together': {('slug', 'event_topic')},
line too long (117 > 90 characters)
16 migrations.CreateModel(
17 name='EventSubTopic',
18 fields=[
19 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),20 ('name', models.CharField(blank=True, max_length=2147483647, null=True)),
21 ('slug', models.CharField(blank=True, max_length=2147483647, null=True)),
22 ('event_topic', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='event_topics.eventtopic')),
Description
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs