CCCPaste

2024-02-23_stats.json

{
"ip": {
"147.182.129.134": 8,
"172.104.208.93": 2,
"194.165.16.10": 4,

DeleteView

class DeleteAlbumView(views.DeleteView):
queryset = Album.objects.all()
template_name = 'albums/album-delete.html'
success_url = reverse_lazy('index')
form_class = modelform_factory(Album, fields=('name', 'artist_name', 'genre', 'description', 'image_url', 'price'))

profile_helper

from exam_preparation.profiles.models import Profile


def get_profile():
return Profile.objects.first()

data849

{
status: 'Success',
method: 'server',
maindata: 'cc3b7ad20913152de49e0769c4db31be40d529bdfe57344b5243fcc05d4a796331f07752f3719f3ca7b6885bae637a84f94e6496ed0574da3a89447ce6a5a32d63678b2106e92c5594b5090282ae309233c93337575e5e0e2d2a23eacf8b6eb1860aced1d1f76470278cea0bf432c6095e691875cea3bc1a7cd0566afe265ad0',
otherdata: [

profile_helper

from exam_preparation.profiles.models import Profile


def get_profile():
return Profile.objects.first()

Untitled

#include <iostream>
using namespace std;

int main() {
int k, a, b;

Read-only fields

Read-Only 1 way

class ReadOnlyAlbumForm(ModelForm):
class Meta:
model = Album

2024-02-23_stats.json

{
"ip": {
"147.182.129.134": 4,
"172.104.208.93": 1,
"194.165.16.10": 2,

Details and Delete Profile

class DetailProfileView(views.DetailView):
queryset = Profile.objects.all()
template_name = 'profiles/profile-details.html'

def get_object(self, queryset=None):

2024-02-22_stats.json

{
"ip": {
"185.180.143.48": 2,
"87.251.75.145": 3,
"120.240.145.8": 2,